Opened 9 years ago

Closed 9 years ago

#47240 closed defect (duplicate)

py27-numpy fails to run

Reported by: dershow Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: dh@…, michaelld (Michael Dickens)
Port: py27-numpy

Description

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.

Change History (2)

comment:1 Changed 9 years ago by dershow

Trac was down a little while ago when I tried to search, so I didn't see this ticket before: https://trac.macports.org/ticket/31419 So, it looks like this is a repeat ticket. But, still outstanding after 2 years.

comment:2 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: duplicate
Status: newclosed

Is duplicate #31419.

Note: See TracTickets for help on using tickets.