You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unittesting pyo3 interfaces in a virtual environment and loading a python module for the unittests, pyo3 aborts with a module not found error, even though the module is installed in the virtual environment.
The issue vanishes when installing the python package/module in the base python install additionally to the virtual environement.
As far as I'm aware, we've never knowingly had this working, see #1741. We think that there is scope to update the way we initialize python once we drop 3.7 which may fix this.
If you have a way to reproduce what did work before, that would be helpful in giving us a way to design a permanently working solution.
Thank you for the clarification. After revisiting what worked before on the local machine before, it seems it always was a fluke of the installed packages underlying python setup that this worked in the first place.
So unfortunately I don't think I can provide further insights at the moment.
I'm sorry for the wrong bug report. @davidhewitt Should I just close this issue?
Bug Description
When unittesting pyo3 interfaces in a virtual environment and loading a python module for the unittests, pyo3 aborts with a module not found error, even though the module is installed in the virtual environment.
The issue vanishes when installing the python package/module in the base python install additionally to the virtual environement.
Steps to Reproduce
The error disappears when manually installing numpy also in the base python install.
The same error can also be produced by using the numpy crate
Backtrace
Your operating system and version
macos 13.4.1 and debian bullseye
Your Python version (
python --version
)3.11.4 (also on 3.10 and 3.9)
Your Rust version (
rustc --version
)rustc 1.71.0
Your PyO3 version
0.19.1
How did you install python? Did you use a virtualenv?
homebrew + venv on macos
micromamba using micromamba created conda environments on linux
Additional Info
The same tests on the same machines seemed to work without issues pre-0.19
The text was updated successfully, but these errors were encountered: