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

/web keeps asking me to install playwright, /ask keeps downloading files #3188

Open
bluelight773 opened this issue Feb 8, 2025 · 10 comments
Labels
question Further information is requested

Comments

@bluelight773
Copy link

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?

modules.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████| 349/349 [00:00<00:00, 2.27MB/s]
config_sentence_transformers.json: 100%|█████████████████████████████████████████████████████████████████████| 124/124 [00:00<00:00, 818kB/s]
README.md: 100%|█████████████████████████████████████████████████████████████████████████████████████████| 94.8k/94.8k [00:00<00:00, 988kB/s]
sentence_bert_config.json: 100%|███████████████████████████████████████████████████████████████████████████| 52.0/52.0 [00:00<00:00, 344kB/s]
config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████| 743/743 [00:00<00:00, 5.60MB/s]
model.safetensors: 100%|██████████████████████████████████████████████████████████████████████████████████| 133M/133M [00:18<00:00, 7.37MB/s]
tokenizer_config.json: 100%|████████████████████████████████████████████████████████████████████████████████| 366/366 [00:00<00:00, 3.02MB/s]
vocab.txt: 100%|██████████████████████████████████████████████████████████████████████████████████████████| 232k/232k [00:00<00:00, 2.64MB/s]
tokenizer.json: 100%|█████████████████████████████████████████████████████████████████████████████████████| 711k/711k [00:00<00:00, 2.01MB/s]
special_tokens_map.json: 100%|██████████████████████████████████████████████████████████████████████████████| 125/125 [00:00<00:00, 1.04MB/s]
1_Pooling/config.json: 100%|████████████████████████████████████████████████████████████████████████████████| 190/190

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

@ozan-s
Copy link

ozan-s commented Feb 8, 2025

I have the same issue. I need to install help related files after each upgrade.
I noticed you also used uv to install Aider. Me too. This might be the cause.

In my case, web scraping only returns:

> /web https://www.google.com                                                                                                                                                                                    

Scraping https://www.google.com...
... added to chat.
───────────────────────

Aider v0.74.1
Model: gemini/gemini-2.0-flash with diff edit format
Git repo: .git with 3 files
Repo-map: using 4096 tokens, auto refresh

@B1tMaster
Copy link

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
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (0.74.2)
Collecting aiohappyeyeballs==2.4.6 (from aider-chat[playwright])
Downloading aiohappyeyeballs-2.4.6-py3-none-any.whl.metadata (5.9 kB)
Collecting aiohttp==3.11.12 (from aider-chat[playwright])
Downloading aiohttp-3.11.12-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.7 kB)
Requirement already satisfied: aiosignal==1.3.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.3.2)
Requirement already satisfied: annotated-types==0.7.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.7.0)
Requirement already satisfied: anyio==4.8.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (4.8.0)
Requirement already satisfied: attrs==25.1.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (25.1.0)
Requirement already satisfied: backoff==2.2.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (2.2.1)
Collecting beautifulsoup4==4.13.3 (from aider-chat[playwright])
Downloading beautifulsoup4-4.13.3-py3-none-any.whl.metadata (3.8 kB)
Requirement already satisfied: certifi==2025.1.31 in /opt/homebrew/opt/certifi/lib/python3.12/site-packages (from
aider-chat[playwright]) (2025.1.31)
Requirement already satisfied: cffi==1.17.1 in /opt/homebrew/opt/cffi/lib/python3.12/site-packages (from
aider-chat[playwright]) (1.17.1)
Requirement already satisfied: charset-normalizer==3.4.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.4.1)
Requirement already satisfied: click==8.1.8 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (8.1.8)
Requirement already satisfied: configargparse==1.7 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.7)
Requirement already satisfied: diff-match-patch==20241021 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (20241021)
Requirement already satisfied: diskcache==5.6.3 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (5.6.3)
Requirement already satisfied: distro==1.9.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.9.0)
Requirement already satisfied: filelock==3.17.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.17.0)
Requirement already satisfied: flake8==7.1.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (7.1.1)
Requirement already satisfied: frozenlist==1.5.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.5.0)
Collecting fsspec==2025.2.0 (from aider-chat[playwright])
Downloading fsspec-2025.2.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: gitdb==4.0.12 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (4.0.12)
Requirement already satisfied: gitpython==3.1.44 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.1.44)
Collecting grep-ast==0.5.0 (from aider-chat[playwright])
Downloading grep_ast-0.5.0-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: h11==0.14.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.14.0)
Requirement already satisfied: httpcore==1.0.7 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.0.7)
Collecting httpx==0.28.1 (from aider-chat[playwright])
Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting huggingface-hub==0.28.1 (from aider-chat[playwright])
Downloading huggingface_hub-0.28.1-py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: idna==3.10 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (3.10)
Requirement already satisfied: importlib-metadata==7.2.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (7.2.1)
Requirement already satisfied: importlib-resources==6.5.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (6.5.2)
Requirement already satisfied: jinja2==3.1.5 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (3.1.5)
Requirement already satisfied: jiter==0.8.2 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.8.2)
Requirement already satisfied: json5==0.10.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.10.0)
Requirement already satisfied: jsonschema==4.23.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (4.23.0)
Requirement already satisfied: jsonschema-specifications==2024.10.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2024.10.1)
Collecting litellm==1.60.6 (from aider-chat[playwright])
Downloading litellm-1.60.6-py3-none-any.whl.metadata (37 kB)
Requirement already satisfied: markdown-it-py==3.0.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.0.0)
Requirement already satisfied: markupsafe==3.0.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.0.2)
Requirement already satisfied: mccabe==0.7.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.7.0)
Requirement already satisfied: mdurl==0.1.2 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.1.2)
Requirement already satisfied: mixpanel==4.10.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (4.10.1)
Requirement already satisfied: monotonic==1.6 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.6)
Requirement already satisfied: multidict==6.1.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (6.1.0)
Requirement already satisfied: networkx==3.2.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.2.1)
Collecting numpy==1.26.4 (from aider-chat[playwright])
Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB)
Collecting openai==1.61.1 (from aider-chat[playwright])
Downloading openai-1.61.1-py3-none-any.whl.metadata (27 kB)
Requirement already satisfied: packaging==24.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (24.2)
Requirement already satisfied: pathspec==0.12.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.12.1)
Requirement already satisfied: pexpect==4.9.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (4.9.0)
Collecting pillow==10.4.0 (from aider-chat[playwright])
Using cached pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.2 kB)
Requirement already satisfied: posthog==3.11.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.11.0)
Requirement already satisfied: prompt-toolkit==3.0.50 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.0.50)
Requirement already satisfied: propcache==0.2.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.2.1)
Requirement already satisfied: psutil==6.1.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (6.1.1)
Requirement already satisfied: ptyprocess==0.7.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.7.0)
Requirement already satisfied: pycodestyle==2.12.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.12.1)
Requirement already satisfied: pycparser==2.22 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.22)
Requirement already satisfied: pydantic==2.10.6 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.10.6)
Requirement already satisfied: pydantic-core==2.27.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.27.2)
Requirement already satisfied: pydub==0.25.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (0.25.1)
Requirement already satisfied: pyflakes==3.2.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (3.2.0)
Requirement already satisfied: pygments==2.19.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.19.1)
Requirement already satisfied: pypandoc==1.15 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.15)
Requirement already satisfied: pyperclip==1.9.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.9.0)
Requirement already satisfied: python-dateutil==2.9.0.post0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.9.0.post0)
Requirement already satisfied: python-dotenv==1.0.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.0.1)
Requirement already satisfied: pyyaml==6.0.2 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (6.0.2)
Requirement already satisfied: referencing==0.36.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.36.2)
Requirement already satisfied: regex==2024.11.6 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2024.11.6)
Requirement already satisfied: requests==2.32.3 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (2.32.3)
Requirement already satisfied: rich==13.9.4 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (13.9.4)
Requirement already satisfied: rpds-py==0.22.3 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.22.3)
Collecting scipy==1.13.1 (from aider-chat[playwright])
Using cached scipy-1.13.1-cp312-cp312-macosx_12_0_arm64.whl.metadata (60 kB)
Requirement already satisfied: six==1.17.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.17.0)
Requirement already satisfied: smmap==5.0.2 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (5.0.2)
Requirement already satisfied: sniffio==1.3.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.3.1)
Requirement already satisfied: sounddevice==0.5.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.5.1)
Requirement already satisfied: soundfile==0.13.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.13.1)
Requirement already satisfied: soupsieve==2.6 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (2.6)
Requirement already satisfied: tiktoken==0.8.0 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.8.0)
Requirement already satisfied: tokenizers==0.19.1 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.19.1)
Requirement already satisfied: tqdm==4.67.1 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (4.67.1)
Requirement already satisfied: tree-sitter==0.21.3 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.21.3)
Requirement already satisfied: tree-sitter-languages==1.10.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.10.2)
Requirement already satisfied: typing-extensions==4.12.2 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (4.12.2)
Requirement already satisfied: urllib3==2.3.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (2.3.0)
Requirement already satisfied: watchfiles==1.0.4 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (1.0.4)
Requirement already satisfied: wcwidth==0.2.13 in
/opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages (from aider-chat[playwright]) (0.2.13)
Requirement already satisfied: yarl==1.18.3 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (1.18.3)
Requirement already satisfied: zipp==3.21.0 in /opt/homebrew/Cellar/aider/0.74.2/libexec/lib/python3.12/site-packages
(from aider-chat[playwright]) (3.21.0)
Requirement already satisfied: pip==25.0 in /opt/homebrew/lib/python3.12/site-packages (from aider-chat[playwright])
(25.0)
Collecting greenlet==3.0.3 (from aider-chat[playwright])
Using cached greenlet-3.0.3-cp312-cp312-macosx_11_0_universal2.whl.metadata (3.8 kB)
Collecting playwright==1.47.0 (from aider-chat[playwright])
Using cached playwright-1.47.0-py3-none-macosx_11_0_arm64.whl.metadata (3.5 kB)
Collecting pyee==12.0.0 (from aider-chat[playwright])
Using cached pyee-12.0.0-py3-none-any.whl.metadata (2.8 kB)
Downloading aiohappyeyeballs-2.4.6-py3-none-any.whl (14 kB)
Downloading aiohttp-3.11.12-cp312-cp312-macosx_11_0_arm64.whl (456 kB)
Downloading beautifulsoup4-4.13.3-py3-none-any.whl (186 kB)
Downloading fsspec-2025.2.0-py3-none-any.whl (184 kB)
Using cached greenlet-3.0.3-cp312-cp312-macosx_11_0_universal2.whl (273 kB)
Downloading grep_ast-0.5.0-py3-none-any.whl (11 kB)
Using cached httpx-0.28.1-py3-none-any.whl (73 kB)
Downloading huggingface_hub-0.28.1-py3-none-any.whl (464 kB)
Downloading litellm-1.60.6-py3-none-any.whl (6.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 100.2 MB/s eta 0:00:00
Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB)
Downloading openai-1.61.1-py3-none-any.whl (463 kB)
Using cached pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl (3.4 MB)
Using cached playwright-1.47.0-py3-none-macosx_11_0_arm64.whl (33.2 MB)
Using cached pyee-12.0.0-py3-none-any.whl (14 kB)
Using cached scipy-1.13.1-cp312-cp312-macosx_12_0_arm64.whl (30.4 MB)
Installing collected packages: pyee, pillow, numpy, greenlet, fsspec, beautifulsoup4, aiohappyeyeballs, scipy,
playwright, huggingface-hub, httpx, grep-ast, aiohttp, openai, litellm
Attempting uninstall: pillow
Found existing installation: pillow 11.1.0
Not uninstalling pillow at /opt/homebrew/Cellar/pillow/11.1.0/lib/python3.12/site-packages, outside environment
/opt/homebrew/Cellar/aider/0.74.2/libexec
Can't uninstall 'pillow'. No files were found to uninstall.
Attempting uninstall: numpy
Found existing installation: numpy 2.2.3
Not uninstalling numpy at /opt/homebrew/Cellar/numpy/2.2.3/lib/python3.12/site-packages, outside environment
/opt/homebrew/Cellar/aider/0.74.2/libexec
Can't uninstall 'numpy'. No files were found to uninstall.
Attempting uninstall: fsspec
Found existing installation: fsspec 2024.12.0

[notice] A new release of pip is available: 25.0 -> 25.0.1
[notice] To update, run: /opt/homebrew/Cellar/aider/0.74.2/libexec/bin/python -m pip install --upgrade pip
error: uninstall-no-record-file

× Cannot uninstall fsspec 2024.12.0
╰─> The package's contents are unknown: no RECORD file was found for fsspec.

hint: The package was installed by brew. You should check if it can uninstall the package.

Unable to initialize playwright.

@ozan-s
Copy link

ozan-s commented Feb 14, 2025

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...

> /clear                                                                                                                                                                                                         

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /tokens                                                                                                                                                                                                        

Approximate context window usage for gemini/gemini-2.0-flash, in tokens:

$ 0.0002    1,938 system messages 
$ 0.0000      454 repository map  use --map-tokens to resize
==================
$ 0.0002    2,392 tokens total
         1,046,184 tokens remaining in context window
         1,048,576 tokens max context window size
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /web https://www.google.com                                                                                                                                                                                    

Scraping https://www.google.com...
... added to chat.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /tokens                                                                                                                                                                                                        

Approximate context window usage for gemini/gemini-2.0-flash, in tokens:

$ 0.0002    1,938 system messages 
$ 0.0002    2,493 chat history    use /clear to clear
$ 0.0000      454 repository map  use --map-tokens to resize
==================
$ 0.0005    4,885 tokens total
         1,043,691 tokens remaining in context window
         1,048,576 tokens max context window size
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> what is this website?                                                                                                                                                                                          

The website you provided the content for is Google's homepage, specifically the Dutch version (indicated by the hl=nl parameter in the URLs and the presence of Dutch text).                                     


Tokens: 5.4k sent, 37 received. Cost: $0.00055 message, $0.0011 session.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>  

@ozan-s
Copy link

ozan-s commented Feb 14, 2025

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.

uv tool upgrade aider-chat
Modified aider-chat environment
 - dataclasses-json==0.6.7
 - deprecated==1.2.18
 - dirtyjson==1.0.8
 - filetype==1.2.0
 - greenlet==3.0.3
 - joblib==1.4.2
 - llama-index-core==0.12.16.post1
 - llama-index-embeddings-huggingface==0.5.1
 - marshmallow==3.26.1
 - mpmath==1.3.0
 - mypy-extensions==1.0.0
 - nest-asyncio==1.6.0
 - nltk==3.9.1
 - playwright==1.47.0
 - pyee==12.0.0
 - safetensors==0.5.2
 - scikit-learn==1.6.1
 - sentence-transformers==3.4.1
 - sqlalchemy==2.0.38
 - sympy==1.13.3
 - tenacity==9.0.0
 - threadpoolctl==3.5.0
 - torch==2.2.2
 - transformers==4.44.2
 - typing-inspect==0.9.0
 - wrapt==1.17.2

@ozan-s
Copy link

ozan-s commented Feb 14, 2025

I think I got it. When I use
uv tool install --force --python python3.12 aider-chat@latest --with playwright --with aider-chat[help]
to install aider, the additional packages stay installed even after an upgrade.

@B1tMaster
Copy link

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.

@paul-gauthier
Copy link
Collaborator

@B1tMaster brew is not a recommended way to install aider. Please try installing it using one of the recommended methods:

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

@paul-gauthier paul-gauthier added question Further information is requested and removed priority labels Feb 19, 2025
@B1tMaster
Copy link

@paul-gauthier , hmm interesting.. one would think it should be default.
Why is then we actually have brew bottle that is being updated all the time.
Also, if you install aider using "uv" you are installing it for a particular project, it's not a system wide install is it?
so if I have 5 projects where I need to use aider I need to install it 5 times for each project? (uv creates a virtual environment for a project ) , it's not a global package installer.

Please share your thoughts on the above.

@paul-gauthier
Copy link
Collaborator

The recommended install methods do install it once globally.

@sQVe
Copy link

sQVe commented Feb 20, 2025

@paul-gauthier I'm installing aider via uv, and I'm having issues with using playwright. I'm using Arch Linux, so the recommended way to install playwright does not work.

I've tried installing playwright via uv, the AUR (Arch Linux package manager), pipx, and npm. All of these options work in the sense that I have a playwright binary in my PATH that I'm able to execute. All of the options fail with aider though. I'm still getting the message mentioned in this issue every time, and it also seems to not run the /web lookup in playwright.

Am I missing something here, or is something broken with this setup?

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

No branches or pull requests

5 participants