I just installed the current HEAD to a fresh python3 install. It all installs fine, but if I try to do ipython --pylab, I get this ImportError:
/usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/dateutil/rrule.py in <module>()
16 import sys
---> 18 from six import advance_iterator, integer_types
20 __all__ = ["rrule", "rruleset", "rrulestr",
ImportError: No module named six
The six.py introduced in lib/dateutil_py3 in 07d8416 is included in my site-packages/dateutil folder, but the attempted relative import doesn't work (thanks to PEP 328).
To solve this, matplotlib should install six directly into site-packages when on python 3 if not already present, or alternatively change all six imports in dateutil to from .six import ....
from .six import ...
(An easy workaround for users is of course to pip install six or pip install python-dateutil, which includes six as a dependency.)
pip install six
pip install python-dateutil
Sorry -- that's just a big oops on my part. I will fix this before the upcoming release.
No worries, it's obviously easy to work around, just wanted to make sure it didn't make it into the release. :)
Install six as a proper top-level package. Fix some other minor and r…
…elated issues related to installing dateutil and pytz on Python 3.
@dougalsutherland : Can you check that the attached PR resolves the issue for you?
Yep, works for me.