|
From: John H. <jdh...@ac...> - 2004-02-01 16:33:06
|
>>>>> "Nils" == Nils Wagner <nw...@me...> writes:
Nils> ~/cvs/matplotlib/htdocs/screenshots> /usr/bin/python
Nils> makeshots.py Making screenshot simple_plot.py Traceback
Nils> (most recent call last): File "simple_plot.py", line 1, in ?
Nils> from matplotlib.matlab import * File
Nils> "/usr/local/lib/python2.1/site-packages/matplotlib/matlab.py",
Nils> line 109, in ? from mlab import * File
Nils> "/usr/local/lib/python2.1/site-packages/matplotlib/mlab.py",
Nils> line 147 else: numFreqs = NFFT//2+1 ^ SyntaxError: invalid
Nils> syntax
matplotlib requires python2.2, which supports
from __future__ import division
That line should be the on or near the first code line of
matplotlib/mlab.py. When this is imported, the integer division //
operator is defined.
See what's new in python2.2
http://www.python.org/doc/2.2.3/whatsnew/node7.html
I'm surprised you didn't get an error on the call to
from __future__ import division.
JDH
|