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
If using a virtual environment, ensure a clean reinstall:
pip uninstall aider-chat
pip install aider-chat==0.86.2
Verify the installation:
aider --version
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
Or install directly from the repository:
bash
pip install --upgrade git+https://github.com/Aider-AI/aider.git@main
Top comments (0)