From: Paul L. <pau...@ii...> - 2010-10-09 11:58:15
|
Hello all I am seeing a problem similar to that seen by Jorge Scandaliaris. When I run python or ipython -pylab, show() apparently hangs. When I enter CTRL-C, the cursor re-appars, but show() now gives an error message, until I call figure(). This behaviour is repeatable. See trace below. Matplotlib version 1.0.0 from openSUSE RPMs. Other versions: libpython2_6-1_0-2.6.2-6.5.1.x86_64 libpython2_6-1_0-32bit-2.6.2-6.5.1.x86_64 python-2.6.2-6.5.1.x86_64 python-base-2.6.2-6.5.1.x86_64 python-matplotlib-1.0.0-5.1.x86_64 python-matplotlib-tk-1.0.0-5.1.x86_64 python-matplotlib-wx-1.0.0-5.1.x86_64 python-numpy-1.5.0-17.1.x86_64 python-scipy-0.8.0-12.1.x86_64 python-tk-2.6.2-6.5.1.x86_64 tk-8.5.7-3.1.x86_64 Best, Paul Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt >>> fig=plt.figure() >>> plt.show() ^CTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site- packages/matplotlib/backends/backend_tkagg.py", line 74, in show Tk.mainloop() File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop _default_root.tk.mainloop(n) KeyboardInterrupt >>> plt.show() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site- packages/matplotlib/backends/backend_tkagg.py", line 74, in show Tk.mainloop() File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop _default_root.tk.mainloop(n) AttributeError: 'NoneType' object has no attribute 'tk' >>> fig=plt.figure() >>> plt.show() ^CTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site- packages/matplotlib/backends/backend_tkagg.py", line 74, in show Tk.mainloop() File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop _default_root.tk.mainloop(n) KeyboardInterrupt >>> import matplotlib >>> matplotlib.__version__ '1.0.0' |
From: Paul L. <pau...@ii...> - 2010-10-09 12:42:03
|
On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote: > Hello all > I am seeing a problem similar to that seen by Jorge Scandaliaris. I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original problem no longer appears: leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | grep matplotlib | sort python-matplotlib-0.99.1.1-0.pm.1.8.x86_64 leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython -pylab Your PyGtk has set_interactive(), so you can use the more stable single-threaded Gtk mode. See https://bugs.launchpad.net/ipython/+bug/270856 Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) Type "copyright", "credits" or "license" for more information. IPython 0.10 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. Welcome to pylab, a matplotlib-based Python environment. For more information, type 'help(pylab)'. In [1]: from mpl_toolkits.mplot3d import Axes3D In [2]: import matplotlib.pyplot as plt In [3]: fig=plt.figure() /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: DeprecationWarning: Use the new widget gtk.Tooltip self.tooltips = gtk.Tooltips() In [4]: ax=Axes3D(fig) In [5]: plt.show() In [6]: quit() Do you really want to exit ([y]/n)? y Closing threads... Done. After upgrading to Matplotlib 0.99: leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | grep matplotlib | sort python-matplotlib-1.0.0-9.2.x86_64 python-matplotlib-tk-1.0.0-9.2.x86_64 python-matplotlib-wx-1.0.0-9.2.x86_64 leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython -pylab Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) Type "copyright", "credits" or "license" for more information. IPython 0.10 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. Welcome to pylab, a matplotlib-based Python environment. For more information, type 'help(pylab)'. In [1]: from mpl_toolkits.mplot3d import Axes3D In [2]: import matplotlib.pyplot as plt In [3]: fig=plt.figure() In [4]: ax=Axes3D(fig) In [5]: plt.show() ^CERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (206, 0)) --------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) /home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/<ipython console> in <module>() /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in show() 72 for manager in Gcf.get_all_fig_managers(): 73 manager.show() ---> 74 Tk.mainloop() 75 76 def new_figure_manager(num, *args, **kwargs): /usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n) 323 def mainloop(n=0): 324 """Run the main loop of Tcl.""" --> 325 _default_root.tk.mainloop(n) 326 327 getint = int KeyboardInterrupt: In [6]: In [6]: quit() Do you really want to exit ([y]/n)? y |
From: Benjamin R. <ben...@ou...> - 2010-10-09 17:46:52
|
On Sat, Oct 9, 2010 at 7:41 AM, Paul Leopardi <pau...@ii...>wrote: > On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote: > > Hello all > > I am seeing a problem similar to that seen by Jorge Scandaliaris. > > I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original > problem > no longer appears: > > leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | > grep matplotlib | sort > python-matplotlib-0.99.1.1-0.pm.1.8.x86_64 > leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython > -pylab > Your PyGtk has set_interactive(), so you can use the > more stable single-threaded Gtk mode. > See https://bugs.launchpad.net/ipython/+bug/270856 > Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) > Type "copyright", "credits" or "license" for more information. > > IPython 0.10 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > Welcome to pylab, a matplotlib-based Python environment. > For more information, type 'help(pylab)'. > > In [1]: from mpl_toolkits.mplot3d import Axes3D > > In [2]: import matplotlib.pyplot as plt > > In [3]: fig=plt.figure() > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: > DeprecationWarning: Use the new widget gtk.Tooltip > self.tooltips = gtk.Tooltips() > > In [4]: ax=Axes3D(fig) > > In [5]: plt.show() > > In [6]: quit() > Do you really want to exit ([y]/n)? y > Closing threads... Done. > > After upgrading to Matplotlib 0.99: > > leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | > grep matplotlib | sort > python-matplotlib-1.0.0-9.2.x86_64 > python-matplotlib-tk-1.0.0-9.2.x86_64 > python-matplotlib-wx-1.0.0-9.2.x86_64 > > leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython > -pylab > Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) > Type "copyright", "credits" or "license" for more information. > > IPython 0.10 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > Welcome to pylab, a matplotlib-based Python environment. > For more information, type 'help(pylab)'. > > In [1]: from mpl_toolkits.mplot3d import Axes3D > > In [2]: import matplotlib.pyplot as plt > > In [3]: fig=plt.figure() > > In [4]: ax=Axes3D(fig) > > In [5]: plt.show() > ^CERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multi-line statement', (206, 0)) > > --------------------------------------------------------------------------- > KeyboardInterrupt Traceback (most recent call last) > > /home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/<ipython console> > in > <module>() > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in > show() > 72 for manager in Gcf.get_all_fig_managers(): > 73 manager.show() > ---> 74 Tk.mainloop() > 75 > 76 def new_figure_manager(num, *args, **kwargs): > > /usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n) > 323 def mainloop(n=0): > 324 """Run the main loop of Tcl.""" > --> 325 _default_root.tk.mainloop(n) > 326 > 327 getint = int > > KeyboardInterrupt: > > In [6]: > In [6]: quit() > Do you really want to exit ([y]/n)? y > > I believe this was a known issue that came about from some fixes made to the behavior of show() for the 1.0 release. It was patched shortly thereafter and the maintenance branch was also patched. As a workaround, I believe you can try one of the other backends or install matplotlib from source. Does anybody know who maintains the packages for OpenSUSE? It would probably be prudent to poke them to update. Ben Root |
From: Pradyumna <pv...@ps...> - 2010-10-28 23:41:25
|
Hello All, I am running into same issue except mine won't go away even when I went back to matplotlib 0.99. Also, something curious I noticed - when I run the examples, I don't get this error message. Please let me know if you have any suggestions. Thanks! Pradyumna Benjamin Root-2 wrote: > > On Sat, Oct 9, 2010 at 7:41 AM, Paul Leopardi wrote: > >> On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote: >> > Hello all >> > I am seeing a problem similar to that seen by Jorge Scandaliaris. >> >> I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original >> problem >> no longer appears: >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a >> | >> grep matplotlib | sort >> python-matplotlib-0.99.1.1-0.pm.1.8.x86_64 >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython >> -pylab >> Your PyGtk has set_interactive(), so you can use the >> more stable single-threaded Gtk mode. >> See https://bugs.launchpad.net/ipython/+bug/270856 >> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.10 -- An enhanced Interactive Python. >> ? -> Introduction and overview of IPython's features. >> %quickref -> Quick reference. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. >> >> In [1]: from mpl_toolkits.mplot3d import Axes3D >> >> In [2]: import matplotlib.pyplot as plt >> >> In [3]: fig=plt.figure() >> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: >> DeprecationWarning: Use the new widget gtk.Tooltip >> self.tooltips = gtk.Tooltips() >> >> In [4]: ax=Axes3D(fig) >> >> In [5]: plt.show() >> >> In [6]: quit() >> Do you really want to exit ([y]/n)? y >> Closing threads... Done. >> >> After upgrading to Matplotlib 0.99: >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a >> | >> grep matplotlib | sort >> python-matplotlib-1.0.0-9.2.x86_64 >> python-matplotlib-tk-1.0.0-9.2.x86_64 >> python-matplotlib-wx-1.0.0-9.2.x86_64 >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython >> -pylab >> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.10 -- An enhanced Interactive Python. >> ? -> Introduction and overview of IPython's features. >> %quickref -> Quick reference. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. >> >> In [1]: from mpl_toolkits.mplot3d import Axes3D >> >> In [2]: import matplotlib.pyplot as plt >> >> In [3]: fig=plt.figure() >> >> In [4]: ax=Axes3D(fig) >> >> In [5]: plt.show() >> ^CERROR: An unexpected error occurred while tokenizing input >> The following traceback may be corrupted or invalid >> The error message is: ('EOF in multi-line statement', (206, 0)) >> >> --------------------------------------------------------------------------- >> KeyboardInterrupt Traceback (most recent call >> last) >> >> /home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/ >> in >> () >> >> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc >> in >> show() >> 72 for manager in Gcf.get_all_fig_managers(): >> 73 manager.show() >> ---> 74 Tk.mainloop() >> 75 >> 76 def new_figure_manager(num, *args, **kwargs): >> >> /usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n) >> 323 def mainloop(n=0): >> 324 """Run the main loop of Tcl.""" >> --> 325 _default_root.tk.mainloop(n) >> 326 >> 327 getint = int >> >> KeyboardInterrupt: >> >> In [6]: >> In [6]: quit() >> Do you really want to exit ([y]/n)? y >> >> > I believe this was a known issue that came about from some fixes made to > the > behavior of show() for the 1.0 release. It was patched shortly thereafter > and the maintenance branch was also patched. As a workaround, I believe > you > can try one of the other backends or install matplotlib from source. > > Does anybody know who maintains the packages for OpenSUSE? It would > probably be prudent to poke them to update. > > Ben Root > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/Confirming-problem-with-matplotlib.pyplot.show%28%29-tp29922229p30080049.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Benjamin R. <ben...@ou...> - 2010-10-30 17:23:24
|
On Thursday, October 28, 2010, Pradyumna <pv...@ps...> wrote: > > Hello All, > > I am running into same issue except mine won't go away even when I went back to matplotlib 0.99. > > Also, something curious I noticed - when I run the examples, I don't get this error message. > > Please let me know if you have any suggestions. > > Thanks! > Pradyumna > > > Benjamin Root-2 wrote: > > On Sat, Oct 9, 2010 at 7:41 AM, Paul Leopardi wrote: > >> On Saturday 09 October 2010 22:58:04 Paul Leopardi wrote: >> > Hello all >> > I am seeing a problem similar to that seen by Jorge Scandaliaris. >> >> I downgraded from matplotlib 1.0.0 to matplotlib 0.99 and my original >> problem >> no longer appears: >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | >> grep matplotlib | sort >> python-matplotlib-0.99.1.1-0.pm.1.8.x86_64 >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython >> -pylab >> Your PyGtk has set_interactive(), so you can use the >> more stable single-threaded Gtk mode. >> See https://bugs.launchpad.net/ipython/+bug/270856 >> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.10 -- An enhanced Interactive Python. >> ? -> Introduction and overview of IPython's features. >> %quickref -> Quick reference. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. >> >> In [1]: from mpl_toolkits.mplot3d import Axes3D >> >> In [2]: import matplotlib.pyplot as plt >> >> In [3]: fig=plt.figure() >> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: >> DeprecationWarning: Use the new widget gtk.Tooltip >> self.tooltips = gtk.Tooltips() >> >> In [4]: ax=Axes3D(fig) >> >> In [5]: plt.show() >> >> In [6]: quit() >> Do you really want to exit ([y]/n)? y >> Closing threads... Done. >> >> After upgrading to Matplotlib 0.99: >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> rpm -q -a | >> grep matplotlib | sort >> python-matplotlib-1.0.0-9.2.x86_64 >> python-matplotlib-tk-1.0.0-9.2.x86_64 >> python-matplotlib-wx-1.0.0-9.2.x86_64 >> >> leopardi@linfinit:~/src/Working/Working-0.5.1/glucat/pyclical> ipython >> -pylab >> Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.10 -- An enhanced Interactive Python. >> ? -> Introduction and overview of IPython's features. >> %quickref -> Quick reference. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. >> >> In [1]: from mpl_toolkits.mplot3d import Axes3D >> >> In [2]: import matplotlib.pyplot as plt >> >> In [3]: fig=plt.figure() >> >> In [4]: ax=Axes3D(fig) >> >> In [5]: plt.show() >> ^CERROR: An unexpected error occurred while tokenizing input >> The following traceback may be corrupted or invalid >> The error message is: ('EOF in multi-line statement', (206, 0)) >> >> --------------------------------------------------------------------------- >> KeyboardInterrupt Traceback (most recent call last) >> >> /home/leopardi/src/Working/Working-0.5.1/glucat/pyclical/ >> in >> () >> >> /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in >> show() >> 72 for manager in Gcf.get_all_fig_managers(): >> 73 manager.show() >> ---> 74 Tk.mainloop() >> 75 >> 76 def new_figure_manager(num, *args, **kwargs): >> >> /usr/lib64/python2.6/lib-tk/Tkinter.pyc in mainloop(n) >> 323 def mainloop(n=0): >> 324 """Run the main loop of Tcl.""" >> --> 325 _default_root.tk.mainloop(n) >> 326 >> 327 getint = int >> >> KeyboardInterrupt: >> >> In [6]: >> In [6]: quit() >> Do you really want to exit ([y]/n)? y >> >> > I believe this was a known issue that came about from some fixes made to the > behavior of show() for the 1.0 release. It was patched shortly thereafter > and the maintenance branch was also patched. As a workaround, I believe you > can try one of the other backends or install matplotlib from source. > > Does anybody know who maintains the packages for OpenSUSE? It would > probably be prudent to poke them to update. > > Ben Root > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > > View this message in context: Re: Confirming problem with matplotlib.pyplot.show() <http://old.nabble.com/Confirming-problem-with-matplotlib.pyplot.show%28%29-tp29922229p30080049.html> > Sent from the matplotlib - users mailing list archive <http://old.nabble.com/matplotlib---users-f2906.html> at Nabble.com. > What was the error message? The message in your email was garbled. Ben Root |