Hi,
just installed matplotlib by doing
git clone GitHub - matplotlib/matplotlib: matplotlib: plotting with Python
cd matplotlib
python3 setup.py build
sudo python3 setup.py install
When I import matplotlib.pyplot I get the following error message.
Any help is wellcome
Elmar
Python 3.2.1 (default, Jul 18 2011, 16:24:40) [GCC] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
>>> import matplotlib
>>> numpy.__version__
'1.6.2'
>>> matplotlib.__version__
'1.2.x'
>>> import matplotlib.pyplot
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import matplotlib.pyplot
File "/usr/local/lib/python3.2/site-packages/matplotlib/pyplot.py", line 26, in <module>
from matplotlib.figure import Figure, figaspect
File "/usr/local/lib/python3.2/site-packages/matplotlib/figure.py", line 19, in <module>
from .axes import Axes, SubplotBase, subplot_class_factory
File "/usr/local/lib/python3.2/site-packages/matplotlib/axes.py", line 21, in <module>
import matplotlib.dates as mdates
File "/usr/local/lib/python3.2/site-packages/matplotlib/dates.py", line 122, in <module>
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
File "/usr/local/lib/python3.2/site-packages/dateutil/rrule.py", line 55
raise ValueError, "Can't create weekday with n == 0"
^
SyntaxError: invalid syntax
···
Install python-dateutil 2.1 <http://labix.org/python-dateutil/>\. Do not use not dateutil 1.5 or the version included with matplotlib.
See also <Issues · matplotlib/matplotlib · GitHub;
Christoph
···
On 7/28/2012 12:29 PM, elmar werling wrote:
Hi,
just installed matplotlib by doing
git clone GitHub - matplotlib/matplotlib: matplotlib: plotting with Python
cd matplotlib
python3 setup.py build
sudo python3 setup.py install
When I import matplotlib.pyplot I get the following error message.
Any help is wellcome
Elmar
Python 3.2.1 (default, Jul 18 2011, 16:24:40) [GCC] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
>>> import matplotlib
>>> numpy.__version__
'1.6.2'
>>> matplotlib.__version__
'1.2.x'
>>> import matplotlib.pyplot
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import matplotlib.pyplot
File "/usr/local/lib/python3.2/site-packages/matplotlib/pyplot.py",
line 26, in <module>
from matplotlib.figure import Figure, figaspect
File "/usr/local/lib/python3.2/site-packages/matplotlib/figure.py",
line 19, in <module>
from .axes import Axes, SubplotBase, subplot_class_factory
File "/usr/local/lib/python3.2/site-packages/matplotlib/axes.py",
line 21, in <module>
import matplotlib.dates as mdates
File "/usr/local/lib/python3.2/site-packages/matplotlib/dates.py",
line 122, in <module>
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
File "/usr/local/lib/python3.2/site-packages/dateutil/rrule.py", line 55
raise ValueError, "Can't create weekday with n == 0"
^
SyntaxError: invalid syntax
>>>
thank you,
will test it tommorow, first i have to install setuptools
···
Am 28.07.2012 21:46, schrieb Christoph Gohlke:
On 7/28/2012 12:29 PM, elmar werling wrote:
Hi,
just installed matplotlib by doing
git clone GitHub - matplotlib/matplotlib: matplotlib: plotting with Python
cd matplotlib
python3 setup.py build
sudo python3 setup.py install
When I import matplotlib.pyplot I get the following error message.
Any help is wellcome
Elmar
Python 3.2.1 (default, Jul 18 2011, 16:24:40) [GCC] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
>>> import matplotlib
>>> numpy.__version__
'1.6.2'
>>> matplotlib.__version__
'1.2.x'
>>> import matplotlib.pyplot
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import matplotlib.pyplot
File "/usr/local/lib/python3.2/site-packages/matplotlib/pyplot.py",
line 26, in <module>
from matplotlib.figure import Figure, figaspect
File "/usr/local/lib/python3.2/site-packages/matplotlib/figure.py",
line 19, in <module>
from .axes import Axes, SubplotBase, subplot_class_factory
File "/usr/local/lib/python3.2/site-packages/matplotlib/axes.py",
line 21, in <module>
import matplotlib.dates as mdates
File "/usr/local/lib/python3.2/site-packages/matplotlib/dates.py",
line 122, in <module>
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
File "/usr/local/lib/python3.2/site-packages/dateutil/rrule.py", line 55
raise ValueError, "Can't create weekday with n == 0"
^
SyntaxError: invalid syntax
>>>
Install python-dateutil 2.1 <http://labix.org/python-dateutil/>\. Do not
use not dateutil 1.5 or the version included with matplotlib.
See also <Issues · matplotlib/matplotlib · GitHub;
Christoph
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/