Opened 12 years ago

Last modified 12 years ago

#33791 closed defect

py27-numpy ignoring build_arch because of building in destroot where ARCHFLAGS isn't set — at Initial Version

Reported by: joanmanel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: dh@…, ram@…, openmaintainer@…
Port: py-numpy

Description

I set in macports.conf to use i386. I am using right now Lion 10.7.3, and this is a Macbook 5,2. If I don't set it to i386 it installs everything 64, but I need to install everything in 32 because I need opencv in 32.

The installation is Ok, but then when in python loading numpy:

python2.7 Python 2.7.2 (default, Mar 27 2012, 16:48:41) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] 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 4, 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 8, 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 5, in <module>

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

Some more info: this is the main.log: http://paste.ubuntu.com/902463/ the installation: http://pastebin.com/eW8Q62aj more install log: http://pastebin.com/4dg3c9k7

some more stuff: file /opt/local/bin/python2.7 /opt/local/bin/python2.7: Mach-O executable i386 file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: Mach-O 64-bit bundle x86_64

I installed this 3 days ago, in SL and macports for SL, and it worked perfectly. Then I updated my SO to lion, cleaned everything about macports, installed macports for Lion and as you can see it isn't working.

Change History (0)

Note: See TracTickets for help on using tickets.