Aider-AI / aider

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

Keras incompatibility with help extras #876

Closed Gabriel-p closed 4 months ago

Gabriel-p commented 4 months ago

Issue

aider
Add .aider* to .gitignore (recommended)? y
Added .aider* to .gitignore
Aider v0.44.0
Models: claude-3-5-sonnet-20240620 with diff edit format, weak model claude-3-haiku-20240307
Git repo: .git with 4 files
Repo-map: using 1024 tokens
Use /help <question> for help, run "aider --help" to see cmd line args
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> /help exit aider

To use interactive /help you need to install the help extras:

/home/gabriel/miniconda3/envs/asteca/bin/python -m pip install aider-chat[help] --extra-index-url https://download.pytorch.org/whl/cpu

Run pip install? y

Installing:  /home/gabriel/miniconda3/envs/asteca/bin/python -m pip install aider-chat[help] --extra-index-url https://download.pytorch.org/whl/cpu
output:ling... ⠴
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cpu
Requirement already satisfied: aider-chat[help] in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (0.44.0)
Requirement already satisfied: aiohttp==3.9.5 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.9.5)
Requirement already satisfied: aiosignal==1.3.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.3.1)
Requirement already satisfied: annotated-types==0.7.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.7.0)
Requirement already satisfied: anyio==4.4.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.4.0)
Requirement already satisfied: attrs==23.2.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (23.2.0)
Requirement already satisfied: backoff==2.2.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.2.1)
Requirement already satisfied: beautifulsoup4==4.12.3 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.12.3)
Requirement already satisfied: certifi==2024.7.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2024.7.4)
Requirement already satisfied: cffi==1.16.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.16.0)
Requirement already satisfied: charset-normalizer==3.3.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.3.2)
Requirement already satisfied: click==8.1.7 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (8.1.7)
Requirement already satisfied: configargparse==1.7 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.7)
Requirement already satisfied: diff-match-patch==20230430 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (20230430)
Requirement already satisfied: diskcache==5.6.3 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (5.6.3)
Requirement already satisfied: distro==1.9.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.9.0)
Requirement already satisfied: filelock==3.15.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.15.4)
Requirement already satisfied: flake8==7.1.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (7.1.0)
Requirement already satisfied: frozenlist==1.4.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.4.1)
Requirement already satisfied: fsspec==2024.6.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2024.6.1)
Requirement already satisfied: gitdb==4.0.11 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.0.11)
Requirement already satisfied: gitpython==3.1.43 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.1.43)
Requirement already satisfied: grep-ast==0.3.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.3.2)
Requirement already satisfied: h11==0.14.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.14.0)
Requirement already satisfied: httpcore==1.0.5 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.0.5)
Requirement already satisfied: httpx==0.27.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.27.0)
Requirement already satisfied: huggingface-hub==0.23.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.23.4)
Requirement already satisfied: idna==3.7 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.7)
Requirement already satisfied: importlib-metadata==7.2.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (7.2.1)
Requirement already satisfied: importlib-resources==6.4.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (6.4.0)
Requirement already satisfied: jinja2==3.1.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.1.4)
Requirement already satisfied: jsonschema==4.22.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.22.0)
Requirement already satisfied: jsonschema-specifications==2023.12.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2023.12.1)
Requirement already satisfied: litellm==1.41.6 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.41.6)
Requirement already satisfied: markdown-it-py==3.0.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.0.0)
Requirement already satisfied: markupsafe==2.1.5 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.1.5)
Requirement already satisfied: mccabe==0.7.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.7.0)
Requirement already satisfied: mdurl==0.1.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.1.2)
Requirement already satisfied: multidict==6.0.5 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (6.0.5)
Requirement already satisfied: networkx==3.2.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.2.1)
Requirement already satisfied: numpy==1.26.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.26.4)
Requirement already satisfied: openai==1.35.10 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.35.10)
Requirement already satisfied: packaging==24.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (24.1)
Requirement already satisfied: pathspec==0.12.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.12.1)
Requirement already satisfied: pillow==10.4.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (10.4.0)
Requirement already satisfied: prompt-toolkit==3.0.47 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.0.47)
Requirement already satisfied: pycodestyle==2.12.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.12.0)
Requirement already satisfied: pycparser==2.22 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.22)
Requirement already satisfied: pydantic==2.8.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.8.2)
Requirement already satisfied: pydantic-core==2.20.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.20.1)
Requirement already satisfied: pyflakes==3.2.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.2.0)
Requirement already satisfied: pygments==2.18.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.18.0)
Requirement already satisfied: pypandoc==1.13 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.13)
Requirement already satisfied: python-dotenv==1.0.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.0.1)
Requirement already satisfied: pyyaml==6.0.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (6.0.1)
Requirement already satisfied: referencing==0.35.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.35.1)
Requirement already satisfied: regex==2024.5.15 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2024.5.15)
Requirement already satisfied: requests==2.32.3 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.32.3)
Requirement already satisfied: rich==13.7.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (13.7.1)
Requirement already satisfied: rpds-py==0.18.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.18.1)
Requirement already satisfied: scipy==1.13.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.13.1)
Requirement already satisfied: smmap==5.0.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (5.0.1)
Requirement already satisfied: sniffio==1.3.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.3.1)
Requirement already satisfied: sounddevice==0.4.7 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.4.7)
Requirement already satisfied: soundfile==0.12.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.12.1)
Requirement already satisfied: soupsieve==2.5 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.5)
Requirement already satisfied: tiktoken==0.7.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.7.0)
Requirement already satisfied: tokenizers==0.19.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.19.1)
Requirement already satisfied: tqdm==4.66.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.66.4)
Requirement already satisfied: tree-sitter==0.21.3 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.21.3)
Requirement already satisfied: tree-sitter-languages==1.10.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.10.2)
Requirement already satisfied: typing-extensions==4.12.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (4.12.2)
Requirement already satisfied: urllib3==2.2.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.2.2)
Requirement already satisfied: wcwidth==0.2.13 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (0.2.13)
Requirement already satisfied: yarl==1.9.4 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.9.4)
Requirement already satisfied: zipp==3.19.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.19.2)
Collecting dataclasses-json==0.6.7 (from aider-chat[help])
  Downloading dataclasses_json-0.6.7-py3-none-any.whl.metadata (25 kB)
Collecting deprecated==1.2.14 (from aider-chat[help])
  Downloading Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting dirtyjson==1.0.8 (from aider-chat[help])
  Downloading dirtyjson-1.0.8-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: greenlet==3.0.3 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.0.3)
Requirement already satisfied: joblib==1.4.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.4.2)
Collecting llama-cloud==0.0.6 (from aider-chat[help])
  Downloading llama_cloud-0.0.6-py3-none-any.whl.metadata (750 bytes)
Collecting llama-index-core==0.10.52.post2 (from aider-chat[help])
  Downloading llama_index_core-0.10.52.post2-py3-none-any.whl.metadata (2.5 kB)
Collecting llama-index-embeddings-huggingface==0.2.2 (from aider-chat[help])
  Downloading llama_index_embeddings_huggingface-0.2.2-py3-none-any.whl.metadata (769 bytes)
Collecting marshmallow==3.21.3 (from aider-chat[help])
  Downloading marshmallow-3.21.3-py3-none-any.whl.metadata (7.1 kB)
Collecting minijinja==2.0.1 (from aider-chat[help])
  Downloading minijinja-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.8 kB)
Collecting mpmath==1.3.0 (from aider-chat[help])
  Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 8.0 MB/s eta 0:00:00
Requirement already satisfied: mypy-extensions==1.0.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.0.0)
Requirement already satisfied: nest-asyncio==1.6.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.6.0)
Requirement already satisfied: nltk==3.8.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.8.1)
Requirement already satisfied: pandas==2.2.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.2.2)
Requirement already satisfied: python-dateutil==2.9.0.post0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2.9.0.post0)
Requirement already satisfied: pytz==2024.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2024.1)
Collecting safetensors==0.4.3 (from aider-chat[help])
  Downloading safetensors-0.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
Collecting scikit-learn==1.5.1 (from aider-chat[help])
  Downloading scikit_learn-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)
Collecting sentence-transformers==3.0.1 (from aider-chat[help])
  Downloading sentence_transformers-3.0.1-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: six==1.16.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.16.0)
Collecting sqlalchemy==2.0.31 (from sqlalchemy[asyncio]==2.0.31; extra == "help"->aider-chat[help])
  Downloading SQLAlchemy-2.0.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Collecting sympy==1.13.0 (from aider-chat[help])
  Downloading sympy-1.13.0-py3-none-any.whl.metadata (12 kB)
Collecting tenacity==8.4.2 (from aider-chat[help])
  Downloading tenacity-8.4.2-py3-none-any.whl.metadata (1.2 kB)
Requirement already satisfied: threadpoolctl==3.5.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (3.5.0)
Collecting torch==2.2.2 (from aider-chat[help])
  Downloading https://download.pytorch.org/whl/cpu/torch-2.2.2%2Bcpu-cp310-cp310-linux_x86_64.whl (186.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 186.8/186.8 MB 6.9 MB/s eta 0:00:00
Collecting transformers==4.42.3 (from aider-chat[help])
  Downloading transformers-4.42.3-py3-none-any.whl.metadata (43 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 kB 3.8 MB/s eta 0:00:00
Collecting typing-inspect==0.9.0 (from aider-chat[help])
  Downloading typing_inspect-0.9.0-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: tzdata==2024.1 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (2024.1)
Requirement already satisfied: wrapt==1.16.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aider-chat[help]) (1.16.0)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from aiohttp==3.9.5->aider-chat[help]) (4.0.3)
Requirement already satisfied: exceptiongroup>=1.0.2 in /home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages (from anyio==4.4.0->aider-chat[help]) (1.2.1)
Downloading dataclasses_json-0.6.7-py3-none-any.whl (28 kB)
Downloading Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)
Downloading dirtyjson-1.0.8-py3-none-any.whl (25 kB)
Downloading llama_cloud-0.0.6-py3-none-any.whl (130 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.8/130.8 kB 2.2 MB/s eta 0:00:00
Downloading llama_index_core-0.10.52.post2-py3-none-any.whl (15.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.4/15.4 MB 3.4 MB/s eta 0:00:00
Downloading llama_index_embeddings_huggingface-0.2.2-py3-none-any.whl (7.2 kB)
Downloading marshmallow-3.21.3-py3-none-any.whl (49 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.2/49.2 kB 6.7 MB/s eta 0:00:00
Downloading minijinja-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (853 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 853.2/853.2 kB 11.1 MB/s eta 0:00:00
Downloading safetensors-0.4.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 11.5 MB/s eta 0:00:00
Downloading scikit_learn-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.4/13.4 MB 12.7 MB/s eta 0:00:00
Downloading sentence_transformers-3.0.1-py3-none-any.whl (227 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.1/227.1 kB 10.4 MB/s eta 0:00:00
Downloading SQLAlchemy-2.0.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 12.4 MB/s eta 0:00:00
Downloading sympy-1.13.0-py3-none-any.whl (6.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 12.3 MB/s eta 0:00:00
Downloading tenacity-8.4.2-py3-none-any.whl (28 kB)
Downloading transformers-4.42.3-py3-none-any.whl (9.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.3/9.3 MB 12.3 MB/s eta 0:00:00
Downloading typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
Installing collected packages: mpmath, dirtyjson, typing-inspect, tenacity, sympy, sqlalchemy, safetensors, minijinja, marshmallow, deprecated, torch, scikit-learn, dataclasses-json, llama-cloud, transformers, llama-index-core, sentence-transformers, llama-index-embeddings-huggingface
  Attempting uninstall: tenacity
    Found existing installation: tenacity 8.3.0
    Uninstalling tenacity-8.3.0:
      Successfully uninstalled tenacity-8.3.0
  Attempting uninstall: sqlalchemy
    Found existing installation: SQLAlchemy 2.0.29
    Uninstalling SQLAlchemy-2.0.29:
      Successfully uninstalled SQLAlchemy-2.0.29
  Attempting uninstall: scikit-learn
    Found existing installation: scikit-learn 1.4.2
    Uninstalling scikit-learn-1.4.2:
      Successfully uninstalled scikit-learn-1.4.2
Successfully installed dataclasses-json-0.6.7 deprecated-1.2.14 dirtyjson-1.0.8 llama-cloud-0.0.6 llama-index-core-0.10.52.post2 llama-index-embeddings-huggingface-0.2.2 marshmallow-3.21.3 minijinja-2.0.1 mpmath-1.3.0 safetensors-0.4.3 scikit-learn-1.5.1 sentence-transformers-3.0.1 sqlalchemy-2.0.31 sympy-1.13.0 tenacity-8.4.2 torch-2.2.2+cpu transformers-4.42.3 typing-inspect-0.9.0

Installation complete.

2024-07-17 09:45:31.355159: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:479] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-07-17 09:45:31.386913: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:10575] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-07-17 09:45:31.387001: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1442] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-07-17 09:45:32.870104: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/activations_tf.py", line 22, in <module>
    import tf_keras as keras
ModuleNotFoundError: No module named 'tf_keras'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1560, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/modeling_tf_utils.py", line 38, in <module>
    from .activations_tf import get_tf_activation
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/activations_tf.py", line 27, in <module>
    raise ValueError(
ValueError: Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1560, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/integrations/integration_utils.py", line 35, in <module>
    from .. import PreTrainedModel, TFPreTrainedModel
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1550, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1562, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback):
Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gabriel/miniconda3/envs/asteca/bin/aider", line 8, in <module>
    sys.exit(main())
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/main.py", line 584, in main
    coder.run()
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/coders/base_coder.py", line 627, in run
    new_user_message = self.run_loop()
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/coders/base_coder.py", line 663, in run_loop
    return self.commands.run(inp)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/commands.py", line 133, in run
    return self.do_run(matching_commands[0][1:], rest_inp)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/commands.py", line 108, in do_run
    return cmd_method(args)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/commands.py", line 665, in cmd_help
    res = install_help_extra(self.io)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/help.py", line 22, in install_help_extra
    res = utils.check_pip_install_extra(
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/aider/utils.py", line 264, in check_pip_install_extra
    __import__(module)
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/llama_index/embeddings/huggingface/__init__.py", line 1, in <module>
    from llama_index.embeddings.huggingface.base import (
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/llama_index/embeddings/huggingface/base.py", line 28, in <module>
    from sentence_transformers import SentenceTransformer
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/sentence_transformers/__init__.py", line 7, in <module>
    from sentence_transformers.cross_encoder.CrossEncoder import CrossEncoder
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/sentence_transformers/cross_encoder/__init__.py", line 1, in <module>
    from .CrossEncoder import CrossEncoder
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/sentence_transformers/cross_encoder/CrossEncoder.py", line 18, in <module>
    from sentence_transformers.SentenceTransformer import SentenceTransformer
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py", line 27, in <module>
    from sentence_transformers.model_card import SentenceTransformerModelCardData, generate_model_card
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/sentence_transformers/model_card.py", line 23, in <module>
    from transformers.integrations import CodeCarbonCallback
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1550, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/home/gabriel/miniconda3/envs/asteca/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1562, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.integrations.integration_utils because of the following error (look up to see its traceback):
Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback):
Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with `pip install tf-keras`.

Version and model info

Aider v0.44.0 Models: claude-3-5-sonnet-20240620 with diff edit format, weak model claude-3-haiku-20240307 Git repo: .git with 4 files Repo-map: using 1024 tokens

paul-gauthier commented 4 months ago

Thanks for trying aider and filing this issue.

Are you working in a python environment where you had already installed keras? It doesn't appear to have been installed as part of the pip install aider-chat[help].

Gabriel-p commented 4 months ago

Yes, keras was already installed in the environment

paul-gauthier commented 4 months ago

This doc may be helpful:

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

Gabriel-p commented 4 months ago

That solved it, thank you!