Opened 12 years ago

Last modified 11 years ago

#37415 closed defect

py27-numpy: cannot import numpy — at Version 1

Reported by: mf2k (Frank Schima) Owned by: ram@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: dh@…
Port: py-numpy

Description (last modified by mf2k (Frank Schima))

I'm seeing the following error on one computer running Mac OS X 10.8.2 and Xcode 4.5.2. It installs fine on the rest of my 10.8.2 Macs but something is different about this one.

$ port installed py27-numpy
The following ports are currently installed:
 py27-numpy @1.6.2_1+atlas+gcc47 (active)

$ which python
/opt/local/bin/python

$ python
Python 2.7.3 (default, Dec 27 2012, 09:11:40) 
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] 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 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module>
    import add_newdocs
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 48, in <module>
    from linalg import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): 
  Symbol not found: _omp_get_num_threads
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
>>> 

Let me know what other information you need to debug this.

Change History (2)

Changed 12 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: dh@… added
Description: modified (diff)
Port: py27-numpy added; py27-matplotlib removed
Summary: py27-matplotlib cannot find numpypy27-numpy: cannot import numpy
Note: See TracTickets for help on using tickets.