paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
19.36k stars 1.79k forks source link

Uncaught TypeError in main.py line 172 #1696

Closed AbdullhHassan closed 4 days ago

AbdullhHassan commented 4 days ago

Aider version: <module 'aider.version' from '/usr/local/lib/python3.12/site-packages/aider/version.py'> Python version: 3.12.6 Platform: macOS-13.6.9-x86_64-i386-64bit Python implementation: CPython Virtual environment: No OS: Darwin 22.6.0 (64bit) Git version: git version 2.15.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 428, in main
    launch_gui(argv)
  File "main.py", line 172, in launch_gui
    if "-dev" in __version__:
       ^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'module' is not iterable
fry69 commented 4 days ago

Thank you for filing this issue.

This error looks like it stems from installing aider via system packages (or homebrew), which do not respect the required dependencies aider needs, or the installation might otherwise be broken.

Please install aider separately from other Python modules, e.g. via pipx or venv or even Docker, see the installation instruction for options -> https://aider.chat/docs/install/install.html

This document may be also helpful -> https://aider.chat/docs/troubleshooting/imports.html

paul-gauthier commented 4 days ago

Thanks for trying aider and filing this issue.

This looks like a duplicate of #1502. Please see the comments there for more information, and feel free to continue the discussion within that issue.

I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.