indygreg / indygreg/PyOxidizer
Numpy "libopenblas64_p-r0-0cf96a72.3.23.dev.so:" import error at runtime
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
```build/x86_64-unknown-linux-gnu/debug/install$ ./application
OpenCV bindings requires "numpy" package.
Install it via command:
pip install numpy
Traceback (most recent call last):
File "numpy.core", line 24, in
from . import multiarray
File "numpy.core.multiarray", line 10, in
from . import overrides
File "numpy.core.overrides", line 8, in
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 "numpy", line 130, in
from numpy.__config__ import show as show_config
File "numpy.__config__", line 4, in
from numpy.core._multiarray_umath import (
File "numpy.core", line 50, 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.10 from "/home/muthu/clenz/servers/clenz-face-analyser/build/x86_64-unknown-linux-gnu/debug/install/application"
* 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 "runpy", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "runpy", line 86, in _run_code
exec(code, run_globals)
File "src.__main__", line 8, in
File "src.router.face_analysis", line 3, in
import cv2
File "cv2", line 11, in
import numpy
File "numpy", line 135, 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.
```
hey guys has anyone facing this error, i can't run the build file on my WSL system, it seems the error was it can't open .so file from the resources location even though it's exists, help would be appreciated if anyone came out of this
system details:
OS : WSL ubuntu 24.04LTS
python version system : 3.10
pyoxidizer : 0.24.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by running build/x86_64-unknown-linux-gnu/debug/install/application on WSL Ubuntu with Python 3.10 and PyOxidizer 0.24.0. Inspect how the bundled NumPy/OpenCV runtime resolves libopenblas64_p-r0-0cf96a72.3.23.dev.so; done means the installed application imports cv2 and NumPy without the missing-library error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, opencv, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100