[err] Traceback (most recent call last):
[err] File "main.py", line 947, in ?
[err] File "Flt_Test_Data_Review_wx.py", line 23, in ?
[err] File "C:\Documents and Settings\hortonk\Desktop\Python\scripts\FT_Data_Review\GUI.py", line 27, in ?
[err] File "C:\Documents and Settings\hortonk\Desktop\Python\scripts\FT_Data_Review\ftdata.py", line 3, in ?
[err] File "C:\DOCUME~1\hortonk\Desktop\Python\MOVPY-~1.4\movpy\lib\matplotlib\pylab.py", line 200, in ?
[err] File "C:\DOCUME~1\hortonk\Desktop\Python\MOVPY-~1.4\movpy\lib\matplotlib\axes.py", line 18, in ?
[err] ImportError: cannot import name RegularPolyCollection
Line 3 in ftdata.py is:
import pylab
line 200 in pylab.py is:
from axes import Axes, PolarAxes
line 18 in axes.py is:
from collections import RegularPolyCollection, PolyCollection, LineCollection, QuadMesh
I looked in collections.py, and there is a class RegularPolyCollection, so it isn't clear what the problem is.
Ideas?
Kevin Horton
Ottawa, Canada
One quick test you could do, from an interactive interpreter prompt, is
change the current directory to the directory that axes is in and then
add that directory to sys.path (just add '.').
Then do 'import collections' and print 'collections.__file__' to see if
it is picking up the right file.
(You don't have a collections module somewhere else in your code do you.)
When I get home tonight, I'll try an experiment myself. Do you have a
simple example script I can use that demonstrates the problem ?
Michael
> One quick test you could do, from an interactive interpreter prompt, is
> change the current directory to the directory that axes is in and then
> add that directory to sys.path (just add '.').
>
> Then do 'import collections' and print 'collections.__file__' to see if
> it is picking up the right file.
This fails with:
'module' object has no attribute '__file__'
> (You don't have a collections module somewhere else in your code do you.)
No.
> When I get home tonight, I'll try an experiment myself. Do you have a
> simple example script I can use that demonstrates the problem ?
A one line script, with 'import pylab' as the only line will do it.
Kevin
Michael
http://www.voidspace.org.uk/python/articles.shtml
I used the matplotlib - Python 2.4 here:
http://www.tradebit.com/filedetail.php/839342
Kevin
Michael
Thanks for your help.
Kevin