issues with plotting (maybe due to matplotlib)
Hi,
I'm using yade-bzr2612 on ubuntu 9.10. The plot window crashes at some point almost in every simulation, regardless the simulation it's running.
When it happens in the terminal I got:
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (550, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (550, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (550, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (550, 0))
-------
KeyError Traceback (most recent call last)
/usr/lib/
134 y = self.figure.
135 button = self.buttond[
--> 136 FigureCanvasBas
137 if DEBUG: print 'button released'
138
/usr/lib/
1217 s = 'button_
1218 event = MouseEvent(s, self, x, y, button, self._key, guiEvent=guiEvent)
-> 1219 self.callbacks.
1220 self._button = None
1221
...and continues with something similar for other a while (do you need the whole output?)... and then:
KeyError: (0.0, 0.0001999999999
At this point I close the window plot (with the simulation still running), and open it again with the F8 command. Sometimes it works, sometimes I got:
RuntimeError Traceback (most recent call last)
/home/giulia/
----> 1
2
3
4
5
/home/giulia/
254 .. note:: For backwards compatibility reasons, *noShow* option will return list of figures for multiple figures but a single figure (rather than list with 1 element) if there is only 1 figure.
255 """
--> 256 createPlots(
257 global currLineRefs
258 if not noShow:
/home/giulia/
148 global currLineRefs
149 figs=set(
--> 150 for f in figs: pylab.close(f) # close those
151 currLineRefs=[] # remove older plots (breaks live updates of windows that are still open)
152 if len(plots)==0: return # nothing to plot
/usr/lib/
334 if manager.
335 manager.
--> 336 _pylab_
337 else:
338 raise TypeError(
/usr/lib/
61 del Gcf.figs[num]
62 #print len(Gcf.
---> 63 figManager.
64 gc.collect()
65
/usr/lib/
278 self.window.
279 QtCore.
--> 280 self._widgetclosed )
281 if self.toolbar: self.toolbar.
282 if DEBUG: print "destroy figure manager"
RuntimeError: underlying C/C++ object has been deleted
Could it be related to the python version (Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2) I'm using?
or do I need any other python package?
It's not that I can't run the simulation as it works now, but it's a bit annoying.
Thank you
Giulia
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Giulia Macaro for more information if necessary.