Opened 10 years ago
Closed 9 years ago
#46990 closed defect (worksforme)
Error: Processing of port py27-matplotlib failed
Reported by: | harrison@… | Owned by: | seanfarley (Sean Farley) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | petrrr, accrama@…, dh@…, michaelld (Michael Dickens) | |
Port: | py-matplotlib py-numpy |
Description
Hi All,
I am very much a noob and am trying to install scipy via the instructions here for Mac - http://www.scipy.org/install.html - I am on Yoesmite 10.10.2 and Xcode 6.1.1. I have tried cleaning and following some other threads with the same error to find a solution but none seem to be working.
The error in Terminal is -
Error: org.macports.build for port py27-matplotlib returned: command execution failed Please see the log file for port py27-matplotlib for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port py27-matplotlib failed
I've also attached the main.log
Attachments (1)
Change History (8)
Changed 10 years ago by harrison@…
comment:1 follow-up: 2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to sean@… |
---|---|
Port: | py27-matplotlib added |
This was not a clean build. Please clean and try again and attach the new main.log if it fails again.
The error in your log is:
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 that same error persists after cleaning and trying again, the first question would be: what is the architecture of that file? You can find out by running:
lipo -info /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so
I see you are requesting a universal build. The above file is provided by the py27-numpy port, which is listed as a dependency of py27-matplotlib, so MacPorts should have already ensured that py27-matplotlib is installed with the universal variant (meaning: with the correct architectures) before ever attempting to build py27-matplotlib. To verify this, you can also run:
port -v installed py27-numpy
comment:2 Changed 10 years ago by harrison@…
So I've been trying a bunch of things but still getting errors. So I try and clean with
sudo port clean py27-matplotlib
Then I run
sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose
Which Results in:
Error: Processing of port py27-matplotlib failed
So I run the next two commands you suggest and here are my results:
lipo -info /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so is architecture: i386
port -v installed py27-numpy The following ports are currently installed: py27-numpy @1.9.1_2+gfortran+universal (active) platform='darwin 14' archs='i386 x86_64'
Any ideas?
comment:4 Changed 9 years ago by larryv (Lawrence Velázquez)
Cc: | accrama@… added |
---|
Has probable duplicate #48001.
comment:5 Changed 9 years ago by accrama@…
Cc Me ! Cleaning did not work.
lipo -info /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so is architecture: i386 $ port -v installed py27-numpy The following ports are currently installed: py27-numpy @1.9.2_0+gfortran-universal platform='darwin 14' archs='x86_64' py27-numpy @1.9.2_0+gfortran+universal (active) platform='darwin 14' archs='i386 x86_64'
comment:6 Changed 9 years ago by petrrr
Cc: | dh@… michaelld@… added |
---|---|
Port: | py-matplotlib py-numpy added; py27-matplotlib removed |
To me this looks like more like a numpy issue really. I therefore CC the maintainers of py-numpy. Note also that the following ticket might be related: #47359
comment:7 Changed 9 years ago by seanfarley (Sean Farley)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This works for me and has been five months.
main.log