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
import error from numpy #8415
Comments
Where did you get numpy? BTW, questions like this should be asked on the mailing list, github issues is for bugs |
Seems like a bug report to me? Some clues as to what's going on here: CPython has some optional code for catching SIGFPE and converting it into an exception. To use it, you wrap C-level floating point computations in (It looks like you can check which sort of CPython you have by doing Numpy itself doesn't use these macros. But Cython autogenerated code does use them. Conclusion: if you compile a Cython module using a CPython that was built with Quick checking of some common linux CPython builds to see which ones use
@kevinzhai80: Did you by some chance build numpy from source for some reason, using the Ubuntu-installed Python, and then try to import it from a conda-installed Python? |
Hi njsmith, |
Thanks njsmith. Also: Ubuntu 17.10 Artful no. Upgrading caused the error:
|
Hi,
When I write:"from numpy import *" from code and execute the code,then meet the following error:
File "rgbtoyuv.py", line 2, in
import numpy as np
File "/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/init.py", line 163, in
from . import random
File "/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/random/init.py", line 99, in
from .mtrand import *
ImportError: /usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf
Platform ubuntu16.04 x86_64
python version: 3.5.2
numpy version:1.11.2 and try to version:1.9.0 also,but installed failed.
Please help me find the reason,thanks a lot.
The text was updated successfully, but these errors were encountered: