BUG: 1.13.2 release fails upon import (Mac OS X & Linux/Python 3.5.1) #9786
Closed
Description
Versions
- OS X:
10.12.1 (16B2555)
- Linux:
Amazon Linux AMI release 2016.03
- Python:
3.5.1
- Pip:
9.0.1
- Numpy:
1.13.2
numpy-1.13.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
for Mac OS Xnumpy-1.13.2-cp35-cp35m-manylinux1_x86_64.whl
for Linux
Description
We are getting import errors when attempting to use numpy
:
Mac OS X
Python 3.5.1 (default, May 9 2017, 17:14:37)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/adamos.loizou/.virtualenvs/tmp-f692dfaf032dece/lib/python3.5/site-packages/numpy/__init__.py", line 166, in <module>
from . import random
File "/Users/adamos.loizou/.virtualenvs/tmp-f692dfaf032dece/lib/python3.5/site-packages/numpy/random/__init__.py", line 99, in <module>
from .mtrand import *
ImportError: dlopen(/Users/adamos.loizou/.virtualenvs/tmp-f692dfaf032dece/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-darwin.so, 2): Symbol not found: __PyThreadState_UncheckedGet
Referenced from: /Users/adamos.loizou/.virtualenvs/tmp-f692dfaf032dece/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-darwin.so
Expected in: flat namespace
in /Users/adamos.loizou/.virtualenvs/tmp-f692dfaf032dece/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-darwin.so
Linux
Python 3.5.1 (default, Sep 13 2016, 18:48:37)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/venv/local/lib/python3.5/dist-packages/numpy/__init__.py", line 166, in <module>
from . import random
File "/root/venv/local/lib/python3.5/dist-packages/numpy/random/__init__.py", line 99, in <module>
from .mtrand import *
ImportError: /root/venv/local/lib/python3.5/dist-packages/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _PyThreadState_UncheckedGet
This also affects using pandas upon a fresh installation because pandas
only specifies a minimum numpy
version thus taking the latest.
Metadata
Assignees
Labels
No labels