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

Uncaught ImportError in __init__.py line 135 #2433

Open
moeric opened this issue Nov 23, 2024 · 0 comments
Open

Uncaught ImportError in __init__.py line 135 #2433

moeric opened this issue Nov 23, 2024 · 0 comments

Comments

@moeric
Copy link

moeric commented Nov 23, 2024

Aider version: 0.64.1
Python version: 3.10.6
Platform: Linux-6.8.0-48-generic-x86_64-with-glibc2.39
Python implementation: CPython
Virtual environment: No
OS: Linux 6.8.0-48-generic (64bit)
Git version: git version 2.43.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "__init__.py", line 24, in <module>
    from . import multiarray
  File "multiarray.py", line 10, in <module>
    from . import overrides
  File "overrides.py", line 8, in <module>
    from numpy.core._multiarray_umath import (
ImportError: libopenblas64_p-r0-0cf96a72.3.23.dev.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "__init__.py", line 130, in <module>
    from numpy.__config__ import show as show_config
  File "__config__.py", line 4, in <module>
    from numpy.core._multiarray_umath import (
  File "__init__.py", line 50, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.10 from "/home/eric/.pyenv/versions/3.10.6/bin/python"
  * The NumPy version is: "1.26.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libopenblas64_p-r0-0cf96a72.3.23.dev.so: cannot open shared object file: No such file or directory


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

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 861, in main
    coder.run()
  File "base_coder.py", line 741, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 778, in run_one
    message = self.preproc_user_input(user_message)
  File "base_coder.py", line 767, in preproc_user_input
    return self.commands.run(inp)
  File "commands.py", line 251, in run
    return self.do_run(command, rest_inp)
  File "commands.py", line 223, in do_run
    return cmd_method(args)
  File "commands.py", line 1021, in cmd_ask
    return self._generic_chat_command(args, "ask")
  File "commands.py", line 1046, in _generic_chat_command
    coder.run(user_msg)
  File "base_coder.py", line 735, in run
    self.run_one(with_message, preproc)
  File "base_coder.py", line 784, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1144, in send_message
    chunks = self.format_messages()
  File "base_coder.py", line 1080, in format_messages
    chunks = self.format_chat_chunks()
  File "base_coder.py", line 1030, in format_chat_chunks
    chunks.repo = self.get_repo_messages()
  File "base_coder.py", line 638, in get_repo_messages
    repo_content = self.get_repo_map()
  File "base_coder.py", line 610, in get_repo_map
    repo_content = self.repo_map.get_repo_map(
  File "repomap.py", line 128, in get_repo_map
    files_listing = self.get_ranked_tags_map(
  File "repomap.py", line 549, in get_ranked_tags_map
    result = self.get_ranked_tags_map_uncached(
  File "repomap.py", line 580, in get_ranked_tags_map_uncached
    ranked_tags = self.get_ranked_tags(
  File "repomap.py", line 457, in get_ranked_tags
    ranked = nx.pagerank(G, weight="weight", **pers_args)
  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 452, in _pagerank_scipy
    import numpy as np
  File "__init__.py", line 135, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

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

No branches or pull requests

1 participant