-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
/web keeps asking me to install playwright, /ask keeps downloading files #3188
Comments
I have the same issue. I need to install help related files after each upgrade. In my case, web scraping only returns:
Aider v0.74.1 |
I have the same issue. I also find that this was already addressed in jul 2024, but seem still re-occuring.. I am actually get message dependency already satisfied , but aider can't seem to find it. ? Install playwright? (Y)es/(N)o [Yes]: y Installing: /opt/homebrew/Cellar/aider/0.74.2/libexec/bin/python -m pip install --upgrade --upgrade-strategy only-if-needed 'aider-chat[playwright]' Installation failed. Requirement already satisfied: aider-chat[playwright] in [notice] A new release of pip is available: 25.0 -> 25.0.1 × Cannot uninstall fsspec 2024.12.0 hint: The package was installed by brew. You should check if it can uninstall the package. Unable to initialize playwright. |
So I used "uv add playwright" in the project folder and now web scraping is working. It is very likely the way playwright is installed is causing the issue while using uv...
|
Probably this is the reason. When I upgrade aider using uv, it uninstalls all the other dependencies installed separately. This affects /web and /help functionality. So afte each upgrade, aider asks to reinstall playwright and packages used by help.
|
I think I got it. When I use |
I use brew to install aider. i also have python installed via brew.. So brew is the way I install all global products. the issue is that aider (installed by brew, attempts to install "playwright" by using pip.. and brew complains and suggests to create a virtual environment . but if I create a virtual python environment in my project directory, the problem still there. that env also creates issues for the project itself as it creates bin , lib etc directories that now needs to be excluded from git. Also since we still using brew installed aider, it does not see playwright installed in the local virtual environment.. So, in my view, the brew installed aider, should package playwright with it, when it installed by brew. maybe there are other options. but this is the issue I am seeing. |
@B1tMaster brew is not a recommended way to install aider. Please try installing it using one of the recommended methods: |
@paul-gauthier , hmm interesting.. one would think it should be default. Please share your thoughts on the above. |
The recommended install methods do install it once globally. |
@paul-gauthier I'm installing I've tried installing playwright via Am I missing something here, or is something broken with this setup? |
Issue
I find that everyday that I want to use
/web
, I'm asked to install playwright. I'm not sure what's going on, but does the installation of the package not persist? Is there a way to somehow ensure playwright is always installed.For the best web scraping, install Playwright: /home/bluelight/.local/share/uv/tools/aider-chat/bin/python3 -m pip install --upgrade --upgrade-strategy only-if-needed aider-chat[playwright] /home/bluelight/.local/share/uv/tools/aider-chat/bin/python3 -m playwright install --with-deps chromium See https://aider.chat/docs/install/optional.html#enable-playwright for more info.
Perhaps a related/similar issue is that everyday I want to use /help, and I find it ends up downloading files. Any way to persist these files?
It's a bit annoying to know I have to wait for an installation or downloads every day that I run these commands.
Version and model info
Aider v0.74.1
Main model: claude-3-5-sonnet-20241022 with
diff edit format, infinite output
Weak model: gemini/gemini-2.0-pro-exp-02-05
Git repo: ../../.git with 126 files
Repo-map: using 1024 tokens, auto refresh
The text was updated successfully, but these errors were encountered: