spe crashes when clicking on the PyDoc tab

Bug #220557 reported by Andreas Kostyrka
2
Affects Status Importance Assigned to Milestone
spe (Ubuntu)
Confirmed
Undecided
Stani

Bug Description

Binary package hint: spe

spe crashes with fire and flame when clicking the PyDoc tab:

Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x9341e2c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x933c14c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x934a92c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x9345d4c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x934126c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x934aaac> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x933c3ac> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x9345e6c> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0x9345c2c> ignored

Andreas

Tags: python spe
Revision history for this message
Stani (stani) wrote :

Please start spe in a terminal with:
spe --debug

and attach the complete output here as a text file.

Also attach the python source file on which you tried pydoc.

Stani (stani)
Changed in spe:
assignee: nobody → stani
status: New → Incomplete
Revision history for this message
Andreas Kostyrka (andreas-kostyrka) wrote :

ok, the debug output.

Btw this is on Ubuntu Hardy. If you need other packages installed, etc, just ask.

Andreas

Revision history for this message
Andreas Kostyrka (andreas-kostyrka) wrote :

And last but not least the file edited, a plain setup.py generated by grokproject.

Andreas

Revision history for this message
Stani (stani) wrote :

The problem is that pydoc needs to import the source file in order to generate the documentation. So in your case the setup() will be executed. This is not a bug in SPE, but rather in pydoc. The best I can do is see if I can divert pydoc through a subprocess so SPE won't crash anymore. This is not specific to the Ubuntu package, and requires a fix upstream. So please report a bug there as well if you would like to see this fix implemented and refer to this bug:
http://developer.berlios.de/bugs/?group_id=4161

But even if this fix is implemented pydoc will import your setup.py and execute it. If you want to prevent this, I advise you to put all your code in the following if statement:
if __name__ == "__main__":
    #put your code here
    ...

Changed in spe:
status: Incomplete → Confirmed
Revision history for this message
Pablo Catalina (xkill) wrote :
Download full text (5.2 KiB)

The same problem:

$ spe

SPE v0.8.4.h (c)2003-2008 www.stani.be

If spe fails to start:
 - type "python SPE.py --debug > debug.txt 2>&1" at the command prompt
   (or if you use tcsh: "python SPE.py --debug >& debug.txt")
 - send debug.txt with some info to spe.stani.be[at]gmail.com

Blender support disabled (run SPE inside Blender to enable).
Encrypted debugging enabled.

Launching application...

** (python:4061): CRITICAL **: murrine_style_draw_box_gap: assertion `height >= -1' failed
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55880304; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55879296; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55895824; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60684048; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60683544; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55880808; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60829848; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60682536; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55858096; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55881312; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60923632; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55897840; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 60683040; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55879800; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55894816; DEAD>> ignored
Exception ImportError: 'No module named traceback' in <bound method WeakMethod.__onNotifyDeadObj of <wx.lib.pubsub.core.weakmethod.WeakMethod at 55894312; D...

Read more...

Revision history for this message
Pablo Catalina (xkill) wrote :
Download full text (7.3 KiB)

$ spe --debug

SPE v0.8.4.h (c)2003-2008 www.stani.be

If spe fails to start:
 - type "python SPE.py --debug > debug.txt 2>&1" at the command prompt
   (or if you use tcsh: "python SPE.py --debug >& debug.txt")
 - send debug.txt with some info to spe.stani.be[at]gmail.com

Blender support disabled (run SPE inside Blender to enable).
Encrypted debugging enabled.

Spe is running in debugging mode with this configuration:
- platform : linux2
- python : 2.7.2+
- wxPython : 2.8.11.0
- interface : <default>
- encoding : UTF-8

Launching application...
Create: Framework: menu.
Create: Framework: toolbar.
Create: Framework: statusbar.
Creating tabs...
 Shell
 Locals
 Session
 Output
 Find
 Browser
 Recent
 Todo
 Index
 Notes
 Donate
Opening /usr/local/src/ossim/Alienvault-QA/QATools/src/DB.py
Create: MdiSplit: <class 'sm.wxp.smdi.MdiSplitChildFrame'> DB.py /usr/local/src/ossim/Alienvault-QA/QATools/src/DB.py
Create: Sdi: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.tabs
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Activate(True)
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Activate(True)
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event: Parent: <class 'Parent.Panel'>.onSize
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event: Parent: <class 'Parent.Panel'>.onSize
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size

** (python:4280): CRITICAL **: murrine_style_draw_box_gap: assertion `height >= -1' failed
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)
Event: Parent: <class 'Parent.Panel'>.onActivate
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)

** (python:4280): CRITICAL **: murrine_style_draw_box_gap: assertion `height >= -1' failed
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event: Parent: <class 'Parent.Panel'>.onSize
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.