Opened 14 years ago
Last modified 10 years ago
#28346 closed defect
cannot build py27-numpy as i386 on SnowLeopard — at Version 1
Reported by: | dumont.guillaume@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ram@… | |
Port: | py26-numpy, py27-numpy |
Description (last modified by skymoo (Adam Mercer))
Hi,
I am trying to build numpy with python 2.7 as a 32 bit since I would like to use the wxpython port and the numpy port with the same version of python.
I tried to
port install py27-numpy -atlas +universal
with the default build_arch setting and with build_arch set to i386. The install goes trough without any errors and I can import numpy without any problem if python is running in x86_64 mode but if I start python with the command
arch -i386 python
and try to import numpy I always get
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
If I run lipo on this library I get:
Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so is architecture: x86_64
which seems to tell me that this library was built as 64 bit regardless of the build_arch setting.
Is this a known problem?
Thanks
Change History (1)
comment:1 Changed 14 years ago by skymoo (Adam Mercer)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
NumPy has never played nice with the universal variant and I've never had much success in getting it to work. Plus it's never been high on my priority list as I personally never use universal.