indygreg / indygreg/PyOxidizer
Unable to use numpy
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
OS: Ubuntu 19.04 64-bit
Python: Python 3.7.3
Rust: 1.35.0
I'm unable to use numpy in my test project.
- I tried to use
numpyin my project, and I got an error saying there wasn't a module callednumpy. I created a virtual environment withnumpy,scipy, andmatplotlib. I installed these modules withpip, and was able to confirm that they work with a simple test script which plots random numbers. - I ran into the
__file__issue innumpy.__config__, where it tries to look for an extra.libsdirectory. I replaced that line with a hardcoded string value. - I tried with and without
sys_paths = ["$ORIGIN/lib"]inembedded_python_config, it didn't seem to make a difference. - Ultimately, I get this error:
No module named 'numpy.core._multiarray_umath'.
I made sure that the gfortran, libopenblas, and other dependencies were installed, in case that was part of the issue, but it didn't help. Ultimately, I'd like to use this project to make a more portable version of a larger project which has a few C-based module dependencies.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the packaged test project with the reported Ubuntu, Python, and Rust versions, then inspect numpy.config and the embedded_python_config setting mentioned in the report. Done means the packaged project imports numpy successfully, including numpy.core._multiarray_umath, without requiring manual edits or external dependency workarounds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python, rust
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100