Hi Charles,
I'm sending my reply to the matplotlib-users list - please follow
up there, so that others benefit from your experience, or folks
who have run into the same issue can also pitch in with their
help.
Here's where to go to sign up:
Once you're signed up, you hit "reply all" to this email (it
would be kind of you to remove my name from the addressee list
when you do that, so that the email goes only to the
matplotlib-users list, of which I'm a member)
See the rest of my reply below your original message.
cnyaigoti@...287..., on 2013-04-21 09:43, wrote:
Hello Paul
I wished to use matplotlip, but I am facing diffuculties and I
was wondering if you can help.Matplot lib is installed but pylab has the following error. I
will appreciate a suggestion if you have some pleaseCharles
>>> import numpy as np
>>> import pylab as pl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 222, in <module>
from matplotlib import mpl # pulls in most modules
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module>
from matplotlib import artist
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 7, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, \
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py", line 35, in <module>
from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: no matching architecture in universal wrapper
This looks like conflicting versions of python are being used (64
bit and 32 bit). One trick for getting to the bottom of Python
stack traces is to take the text of the *last* line of the
traceback, remove all but the last few bits of the file path
(since other folks won't necessarily be installing to the extact
path you've installeed to), and feed it to google.
The first google hit for "_path.so: no matching architecture in
universal wrapper" is this stackoverflow post:
See if the solution suggested there (installing 32-bit version
from python.org)
best,
···
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7