ImportError: No module named _path

Hello,

I am using Mac 10.5.8.

I have been trying to install Matplotlib, and succeeded to do so.
But when I try to import matplotlib.pyplot, I got the following error:

import matplotlib.pyplot

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/pyplot.py",
line 23, in <module>
    from matplotlib.figure import Figure, figaspect
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/figure.py",
line 16, in <module>
    import artist
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/artist.py",
line 6, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox,
TransformedPath
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/transforms.py",
line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: No module named _path

Could you please let me know how I can fix this problem?
I tried several ways of reinstalling it(after cleaning as described in
many web-sites), but all the ways returned the same error.

Thanks,
Justin.

Justin Park wrote:

Hello,

I am using Mac 10.5.8.

I have been trying to install Matplotlib, and succeeded to do so.

How did you install it?

What python are you using?

-Chris

···

But when I try to import matplotlib.pyplot, I got the following error:

import matplotlib.pyplot

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/pyplot.py",
line 23, in <module>
    from matplotlib.figure import Figure, figaspect
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/figure.py",
line 16, in <module>
    import artist
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/artist.py",
line 6, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox,
TransformedPath
  File
"/Users/hp6/RESEARCH/TOOL/pythons/matplotlib/lib/matplotlib/transforms.py",
line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: No module named _path

Could you please let me know how I can fix this problem?
I tried several ways of reinstalling it(after cleaning as described in
many web-sites), but all the ways returned the same error.

Thanks,
Justin.

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...