Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brew Aider fails to find model, but pip version does #2537

Closed
PaulWaldo opened this issue Dec 5, 2024 · 8 comments
Closed

Brew Aider fails to find model, but pip version does #2537

PaulWaldo opened this issue Dec 5, 2024 · 8 comments
Labels
question Further information is requested stale

Comments

@PaulWaldo
Copy link

Issue

I am running macOS Sequoia 15.1.1. I have tried out aider using the pip-installed version in a virtual environment. It successfully connects to the model:

(aider-env) paul@Mini aider-test % python -V
Python 3.9.6
(aider-env) paul@Mini aider-test % aider --model ollama_chat/codellama:7b                  
/Volumes/ExternalHome/src/personal/aider-test/aider-env/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
───────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.66.0
Model: ollama_chat/codellama:7b with whole edit format
Git repo: .git with 2 files
Repo-map: disabled
───────────────────────────────────────────────────────────────────────────────────────────────────────────
>                                                                                                          

Now I want to use it in a non-python project using the version installed by brew. This install fails to connect to the same model:

paul@Mini glimmer % which aider
/opt/homebrew/bin/aider
(aider-env) paul@Mini aider-test % /opt/homebrew/bin/aider --model ollama_chat/codellama:7b
───────────────────────────────────────────────────────────────────────────────────────────────────────────
OllamaError: Error getting model info for ollama_chat/codellama:7b. Set Ollama API Base via `OLLAMA_API_BASE` environment variable. Error: Client error '404 Not Found' for url 'http://127.0.0.1:11434/api/show'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
Warning for ollama_chat/codellama:7b: Unknown context window size and costs, using sane defaults.
You can skip this check with --no-show-model-warnings

https://aider.chat/docs/llms/warnings.html
Open documentation url for more info? (Y)es/(N)o/(D)on't ask again [Yes]:                                 

I was expecting that both versions would be able to connect to the model. Note that system version of python is

paul@Mini glimmer % which python3
/opt/homebrew/bin/python3
paul@Mini glimmer % python3 -V
Python 3.13.0

Version and model info

Aider v0.66.0
Model: ollama_chat/codellama:7b with whole edit format
Git repo: .git with 2 files
Repo-map: disabled

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

It's not recommended to install aider via brew. Installation via pip or pipx is recommended.

Likely you've picked up a newer version via pip than you got via brew.

Note that aider only works with python 3.9-3.12, not 3.13.

@github-actions github-actions bot added the question Further information is requested label Dec 6, 2024
@PaulWaldo
Copy link
Author

I was able to get it working using a global pip install, thanks. I'm curious if it is the brew install that caused the problem or Python 3.13. If the latter, can it be resolved if the brew dependencies listed 3.12 or less?

@paul-gauthier
Copy link
Collaborator

It won't install at all with python 3.13. See #1984

Copy link

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

@github-actions github-actions bot added the stale label Dec 20, 2024
@PaulWaldo
Copy link
Author

I'm good with the python version requirements, the working versions might be documented on the website to prevent similar issues 😁

@paul-gauthier
Copy link
Collaborator

It should be well documented on the install page now:

https://aider.chat/docs/install.html

@github-actions github-actions bot removed the stale label Dec 21, 2024
Copy link

github-actions bot commented Jan 4, 2025

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

@github-actions github-actions bot added the stale label Jan 4, 2025
Copy link

I'm closing this issue because it has been stalled for 3 weeks with no activity. Feel free to add a comment here and we can re-open it. Or feel free to file a new issue at any time.

Note: A bot script made these updates to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants