[MacPorts] #47240: py27-numpy fails to run

MacPorts noreply at macports.org
Mon Mar 23 06:17:30 PDT 2015


#47240: py27-numpy fails to run
---------------------+--------------------------------
 Reporter:  dersh@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.3.3
 Keywords:           |       Port:  py27-numpy
---------------------+--------------------------------
 I recently upgraded to 10.10, following the full migration instructions.
 py27-numpy was installed as a dependent of something else.  It used to
 work fine in 10.9, but now that I have reinstalled, I get an error when I
 try to import numpy:

 {{{
 >>>python
 Python 2.7.9 (default, Dec 14 2014, 10:02:06)
 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] 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 170, in <module>
     from . import add_newdocs
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/add_newdocs.py", line 13, 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 8, in <module>
     from .type_check import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/lib/type_check.py", line 11, in <module>
     import numpy.core.numeric as _nx
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/core/__init__.py", line 6, in <module>
     from . import multiarray
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/core/multiarray.so, 2): no suitable image found.  Did
 find:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/core/multiarray.so: mach-o, but wrong architecture
 >>>

 }}}

 This looks a lot like this old ticket, that had been closed:
 [https://trac.macports.org/ticket/28346]

 numpy is installed with the universal variant (I presume because whatever
 needed it was universal) but the muliarray.so library is i386 according to
 lipo.
 But, on 10.9 both python27 and py27-numpy were both installed +universal
 and worked fine.

-- 
Ticket URL: <https://trac.macports.org/ticket/47240>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list