Colleagues,

I am trying to follow the 
http://matplotlib.sourceforge.net/users/pyplot_tutorial.html tutorial with 
little success. The very first import fails with either 64 or 32-bit python. 
Any hints I have missed?

$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File 
"/Library/Python/2.6/site-packages/matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg/matplotlib/pyplot.py",
 line 6, in <module>
   from matplotlib.figure import Figure, figaspect
 File 
"/Library/Python/2.6/site-packages/matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg/matplotlib/figure.py",
 line 16, in <module>
   import artist
 File 
"/Library/Python/2.6/site-packages/matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg/matplotlib/artist.py",
 line 5, in <module>
   from transforms import Bbox, IdentityTransform, TransformedBbox, 
TransformedPath
 File 
"/Library/Python/2.6/site-packages/matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg/matplotlib/transforms.py",
 line 34, in <module>
   from matplotlib._path import affine_transform
ImportError: 
/Library/Python/2.6/site-packages/matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg/matplotlib/_path.so:
 no appropriate 64-bit architecture (see "man python" for running in 32-bit 
mode)

>>> exit()

$ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import matplotlib.pyplot as plt
Bus error

$

Sincerely,
Vlad

This e-mail and its attachments are intended only for the individual or entity 
to whom it is addressed and may contain information that is confidential, 
privileged, inside information, or subject to other restrictions on use or 
disclosure. Any unauthorized use, dissemination or copying of this transmission 
or the information in it is prohibited and may be unlawful. If you have 
received this transmission in error, please notify the sender immediately by 
return e-mail, and permanently delete or destroy this e-mail, any attachments, 
and all copies (digital or paper). Unless expressly stated in this e-mail, 
nothing in this message should be construed as a digital or electronic 
signature.

------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to