DEV Community

Jovan Chan
Jovan Chan

Posted on • Originally published at aicoderscope.com

Uncaught AttributeError in __init__.py line 1729 Fix 2026

This article was originally published on aicoderscope.com

AttributeError in init.py at Line 1729

The AttributeError occurring in __init__.py line 1729 stems from a compatibility issue between Aider version 0.86.3.dev+import and Python 3.12.2. The development build contains an incomplete import structure or references an attribute that was refactored but not fully implemented in the dev branch, causing the exception when Aider initializes certain components.

Fix 1: Pin to Stable Release

Rollback to the latest stable Aider release that resolves known dev branch issues:

pip install aider-chat==0.86.2
Enter fullscreen mode Exit fullscreen mode

If using a virtual environment, ensure a clean reinstall:

pip uninstall aider-chat
pip install aider-chat==0.86.2
Enter fullscreen mode Exit fullscreen mode

Verify the installation:

aider --version
Enter fullscreen mode Exit fullscreen mode

Fix 2: Upgrade Development Build

If you specifically need features from the dev branch, fetch the latest dev version which may include the fix:

pip install --upgrade --pre aider-chat
Enter fullscreen mode Exit fullscreen mode

Or install directly from the repository:


bash
pip install --upgrade git+https://github.com/Aider-AI/aider.git@main
Enter fullscreen mode Exit fullscreen mode

Top comments (0)