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

Error Message and Fail during install #204

Open
lbrent2k opened this issue Sep 21, 2024 · 1 comment
Open

Error Message and Fail during install #204

lbrent2k opened this issue Sep 21, 2024 · 1 comment

Comments

@lbrent2k
Copy link

When I get to this stage, I get the error below. How can I resolve this? Thanks.

Generating documentation.

Warn: Error loading inky:
Traceback (most recent call last):
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/init.py", line 23, in
from . import multiarray
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/multiarray.py", line 10, in
from . import overrides
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/overrides.py", line 8, in
from numpy._core._multiarray_umath import (
ImportError: libopenblas.so.0: 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 "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/init.py", line 114, in
from numpy.config import show as show_config
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/config.py", line 4, in
from numpy._core._multiarray_umath import (
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/init.py", line 49, in
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.11 from "/home/lbrent/.virtualenvs/pimoroni/bin/python"
  • The NumPy version is: "2.1.1"

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

Original error was: libopenblas.so.0: 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 "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py", line 218, in load_module
return importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lbrent/inky/inky/init.py", line 3, in
from . import inky # noqa: F401
^^^^^^^^^^^^^^^^^^
File "/home/lbrent/inky/inky/inky.py", line 9, in
import numpy
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/init.py", line 119, in
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.

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

Traceback (most recent call last):
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py", line 301, in walk_packages2
module = load_module(mod.name)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py", line 220, in load_module
raise RuntimeError(f"Error importing {module}") from e
RuntimeError: Error importing inky
(/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py:303)
Traceback (most recent call last):
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/init.py", line 23, in
from . import multiarray
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/multiarray.py", line 10, in
from . import overrides
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/overrides.py", line 8, in
from numpy._core._multiarray_umath import (
ImportError: libopenblas.so.0: 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 "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/init.py", line 114, in
from numpy.config import show as show_config
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/config.py", line 4, in
from numpy._core._multiarray_umath import (
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/_core/init.py", line 49, in
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.11 from "/home/lbrent/.virtualenvs/pimoroni/bin/python"
  • The NumPy version is: "2.1.1"

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

Original error was: libopenblas.so.0: 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 "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py", line 218, in load_module
return importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lbrent/inky/inky/init.py", line 3, in
from . import inky # noqa: F401
^^^^^^^^^^^^^^^^^^
File "/home/lbrent/inky/inky/inky.py", line 9, in
import numpy
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/numpy/init.py", line 119, in
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.

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

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/main.py", line 286, in
cli()
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/main.py", line 199, in cli
pdoc.pdoc(
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/init.py", line 526, in pdoc
all_modules[module_name] = doc.Module.from_name(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/doc.py", line 406, in from_name
return cls(extract.load_module(name))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/home/lbrent/.virtualenvs/pimoroni/lib/python3.11/site-packages/pdoc/extract.py", line 220, in load_module
raise RuntimeError(f"Error importing {module}") from e
RuntimeError: Error importing inky
⚠ WARNING: Error: Failed to generate documentation.

All done!
If this is your first time installing you should reboot for hardware changes to take effect.
Find uninstall steps in /home/lbrent/Pimoroni/inky/uninstall.sh

@helgibbons
Copy link
Contributor

There's some suggestions in #190 that might help with this - if the numpy troubleshooting suggestions don't help apt install libopenblas-dev might be worth a go?

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

2 participants