many thanks Paul,

this did work:

I uninstalled all python in my computer:

sudo rm -rf python*
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf "/Applications/Python 2.7"


and installed python and matplotlib afresh. Numby had been installed





Python 2.7.4 (v2.7.4:026ee0057e2d, Apr  6 2013, 10:15:50) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import pylab as pl
>>> x=[1,2,3,4]
>>> y=[2,3,4,5]
>>> pl.plot(x,y)
[<matplotlib.lines.Line2D object at 0x50b8990>]
>>> pl.show()


Thank you,

Charles











On 22 Apr 2013, at 06:50, Paul Ivanov <pivanov...@gmail.com> wrote:

> 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: 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 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.
> 
> cnyaig...@gmail.com, 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 please
>> 
>> Charles
>> 
>> 
>> 
>>>>> 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:
> http://stackoverflow.com/questions/5419439/matplotlib-pyplot-on-os-x-with-64-bit-python-from-python-org
> 
> 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 


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to