aider
aider copied to clipboard
Uncaught ModuleNotFoundError in __init__.py line 370
Aider version: 0.55.0 Python version: 3.11.7 Platform: macOS-15.0-arm64-arm-64bit Python implementation: CPython Virtual environment: No OS: Darwin 24.0.0 (64bit) Git version: git version 2.39.5 (Apple Git-154)
An uncaught exception occurred:
Traceback (most recent call last):
File "aider", line 8, in <module>
sys.exit(main())
^^^^^^
File "main.py", line 694, in main
io.tool_output()
^^^^^^^^^^^
File "base_coder.py", line 730, in run
def get_input(self):
^^^^^
File "base_coder.py", line 773, in run_one
return
File "base_coder.py", line 1083, in send_message
if self.verbose:
File "base_coder.py", line 1021, in format_messages
if self.main_model.reminder == "sys":
^^^^^^^^^^^^^^^^^^^^^^^^^
File "base_coder.py", line 971, in format_chat_chunks
chunks.system = [
^^^^^^^^
File "base_coder.py", line 627, in get_repo_messages
),
File "base_coder.py", line 599, in get_repo_map
File "repomap.py", line 124, in get_repo_map
max_map_tokens = target
^^^^^^^
File "repomap.py", line 468, in get_ranked_tags_map
use_cache = True
^^^^^^^^^^^^^^^
File "repomap.py", line 499, in get_ranked_tags_map_uncached
other_fnames = list()
^^^^^^^^^^^
File "repomap.py", line 389, in get_ranked_tags
File "backends.py", line 412, in __call__
return self.orig_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pagerank_alg.py", line 110, in pagerank
return _pagerank_scipy(
^^^^^^^^^^^^^^^^
File "pagerank_alg.py", line 460, in _pagerank_scipy
A = nx.to_scipy_sparse_array(G, nodelist=nodelist, weight=weight, dtype=float)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "backends.py", line 412, in __call__
return self.orig_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "convert_matrix.py", line 599, in to_scipy_sparse_array
A = sp.sparse.coo_array((data, (row, col)), shape=(nlen, nlen), dtype=dtype)
^^^^^^^^^
File "__init__.py", line 134, in __getattr__
return _importlib.import_module(f'scipy.{name}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "__init__.py", line 294, in <module>
from ._base import *
File "_base.py", line 5, in <module>
from scipy._lib._util import VisibleDeprecationWarning
File "_util.py", line 18, in <module>
from scipy._lib._array_api import array_namespace
File "_array_api.py", line 17, in <module>
from scipy._lib.array_api_compat import (
File "__init__.py", line 1, in <module>
from numpy import *
File "__init__.py", line 370, in __getattr__
"package managers (pip, conda, apt, ...). Search closed "
^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'numpy.char'
Thank you for filing this issue.
Can you please try to install or reinstall aider in a separate Python environment? Either with venv or pipx?
This document may be helpful -> https://aider.chat/docs/troubleshooting/imports.html
I'm closing this issue for now.
If any new related concerns arise, please feel free to comment, and I'll reopen the issue.