[Tutor] Trying to import matplotlib : ImportError: No module named dateutil.rrule

Thierry Platini thiplat at gmail.com
Tue Jan 18 20:59:41 CET 2011


Hello everyone,

I am completely new in learning python and have a little background in  
programing.

My problem occurs with the importation of matplotlib.

I did download the module from http://sourceforge.net/projects/matplotlib/ 
.

and I believe successfully install the corresping .egg file.


a simple "import matplotlib" does not generate any errors.
However, "import matplotlib.pyplot"  or "import pylab" does generate  
the following error.

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/matplotlib.egg/pylab.py", line 1, in <module>
     from matplotlib.pylab import *
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/matplotlib.egg/matplotlib/pylab.py", line 220,  
in <module>
     from matplotlib import mpl  # pulls in most modules
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/matplotlib.egg/matplotlib/mpl.py", line 3, in  
<module>
     from matplotlib import axes
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/matplotlib.egg/matplotlib/axes.py", line 19,  
in <module>
     import matplotlib.dates as mdates
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/matplotlib.egg/matplotlib/dates.py", line 119,  
in <module>
     from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU,  
YEARLY, \
ImportError: No module named dateutil.rrule


I would really appreciate if someone can help me out with this.
As I said, I am pretty new and would need detailed explanation about  
how to solve the problem.
I might need to let you know that I'm working on mac OS X version 10.5.8


Thanks by advance,

Thierry



More information about the Tutor mailing list