From: Barry D. <bl...@ad...> - 2003-10-17 18:58:05
|
I'm running Python 2.3 on win XPro. When I try to run the simple example code I get the following error output: Traceback (most recent call last): File "C:\Python23\Lib\site-packages\matplotlib\_simple_demo.py", line 6, in ? from matplotlib.figure import Figure, Subplot File "C:\Python23\Lib\site-packages\matplotlib\figure.py", line 19, in ? from lines import Line2D_Dispatcher, SolidLine2D, \ ImportError: cannot import name Line2D_Dispatcher I've searched the files for this name, Line2D_Dispatcher, and can't find it. Is something missing from my installation? Thanks. Barry Drake |
From: John H. <jdh...@ac...> - 2003-10-17 22:16:28
|
>>>>> "Barry" == Barry Drake <bl...@ad...> writes: Barry> I've searched the files for this name, Line2D_Dispatcher, Barry> and can't find it. Is something missing from my Barry> installation? This looks like a version conflict in matplotlib. The dispatcher thing is from an older version and is no longer used, and the _simple_demo.py code has been removed as well. I suggest you remove the C:\Python23\Lib\site-packages\matplotlib dir entirely and reinstall version 0.29 from the matplotlib sourceforge site. Then you should be able to run the examples in the examples dir of the src distribution without problems. Let me know how it goes, John Hunter |
From: Barry D. <bl...@ad...> - 2003-10-17 22:16:53
|
I am using the 0.29 version of matplotlib. I switched to running the examples from the tutorial and things are working great. You verified what I thought, that _simple_demo.py was from an earlier version. I haven't been able to use the package interactively yet. At a command prompt, I was able to run the thread test from the website though. I'll mainly be using matplotlib statically anyway. As a long time Matlab user, I was very happy to find this package! Thanks for your quick response. Barry --- John Hunter <jdh...@ac...> wrote: > >>>>> "Barry" == Barry Drake <bl...@ad...> > writes: > > Barry> I've searched the files for this name, > Line2D_Dispatcher, > Barry> and can't find it. Is something missing > from my > Barry> installation? > > This looks like a version conflict in matplotlib. > The dispatcher > thing is from an older version and is no longer > used, and the > _simple_demo.py code has been removed as well. I > suggest you remove > the C:\Python23\Lib\site-packages\matplotlib dir > entirely and > reinstall version 0.29 from the matplotlib > sourceforge site. > > Then you should be able to run the examples in the > examples dir of the > src distribution without problems. > > Let me know how it goes, > John Hunter |
From: Barry D. <bl...@ad...> - 2003-10-17 22:52:40
|
Update on the interactive mode: I found the interactive2.py on the website and tried that rather than the interactive.py that was included with the .29 dist. That worked. However, 1. it can't find ShowOn (NameError) so I just typed show() at the command prompt 2. and it doesn't exit using ctrl-z <enter> ; I used the close box. Barry --- John Hunter <jdh...@ac...> wrote: > >>>>> "Barry" == Barry Drake <bl...@ad...> > writes: > > Barry> I've searched the files for this name, > Line2D_Dispatcher, > Barry> and can't find it. Is something missing > from my > Barry> installation? > > This looks like a version conflict in matplotlib. > The dispatcher > thing is from an older version and is no longer > used, and the > _simple_demo.py code has been removed as well. I > suggest you remove > the C:\Python23\Lib\site-packages\matplotlib dir > entirely and > reinstall version 0.29 from the matplotlib > sourceforge site. > > Then you should be able to run the examples in the > examples dir of the > src distribution without problems. > > Let me know how it goes, > John Hunter > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux > Forum Conference & Expo > The Event For Linux Datacenter Solutions & > Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in > the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jdh...@ac...> - 2003-10-19 18:52:15
|
>>>>> "Barry" == Barry Drake <bl...@ad...> writes: Barry> Update on the interactive mode: I found the interactive2.py Barry> on the website and tried that rather than the Barry> interactive.py that was included with the .29 dist. That Barry> worked. However, Barry> 1. it can't find ShowOn (NameError) so I just typed show() Barry> at the command prompt I made several bug fixes that have restored interactive2.py functionality. When I added support for other outputs (PS and GD) a few bugs crept into the GTK output that I was unaware of, and tracking down your problems made them clear to me. I just uploaded a new file release to the sourceforge site that reflects these changes to the GTK backend and interactive2.py, as well as the new legend command. The version is 0.29.1, so you should grab a copy and give it a try. Note you'll need the src distribution (zip or tar.gz) to get the new examples/interactive2.py file. Barry> 2. and it doesn't exit using ctrl-z <enter> ; I used the Barry> close box. This one is still on the TODO list. Hope this helps, John Hunter |