pydev debug TypeError

41 views
Skip to first unread message

Rich E

unread,
Jul 28, 2010, 4:36:27 AM7/28/10
to pymt...@googlegroups.com
Hi,

I am having a weird problem with the latest master branch (I can't remember this happening before, but then I haven't been able to look at this too much) when I try to run an example using launcher.py in the pydev/eclipse debugger.  Basically, if I run without the debugger, the example plugin pops right up, if I run in debug mode, I get this error:

--------------------------------
Traceback (most recent call last):
  File "/home/r/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.9.2010063001/pysrc/pydevd.py", line 978, in <module>
    debugger.run(setup['file'], None, None)
  File "/home/r/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.9.2010063001/pysrc/pydevd.py", line 780, in run
    execfile(file, globals, locals) #execute the script
  File "/home/r/code/pymt/rte/examples/desktop/start.py", line 282, in <module>
    runTouchApp()
  File "/home/r/code/pymt/rte/pymt/base.py", line 368, in runTouchApp
    pymt_window.mainloop()
  File "/home/r/code/pymt/rte/pymt/ui/window/win_pygame.py", line 192, in mainloop
    self._mainloop()
  File "/home/r/code/pymt/rte/pymt/ui/window/win_pygame.py", line 124, in _mainloop
    evloop.idle()
  File "/home/r/code/pymt/rte/pymt/base.py", line 221, in idle
    pymt_window.dispatch_event('on_draw')
  File "/home/r/code/pymt/rte/pymt/event.py", line 366, in dispatch_event
    event_type, args, getattr(self, event_type))
  File "/home/r/code/pymt/rte/pymt/event.py", line 362, in dispatch_event
    if getattr(self, event_type)(*args):
  File "/home/r/code/pymt/rte/pymt/ui/window/__init__.py", line 351, in on_draw
    w.dispatch_event('on_draw')
  File "/home/r/code/pymt/rte/pymt/event.py", line 366, in dispatch_event
    event_type, args, getattr(self, event_type))
  File "/home/r/code/pymt/rte/pymt/event.py", line 362, in dispatch_event
    if getattr(self, event_type)(*args):
  File "/home/r/code/pymt/rte/pymt/ui/widgets/composed/innerwindow.py", line 237, in on_draw
    glMultMatrixf(self.transform_mat)
  File "/home/r/code/pymt/rte/pymt/utils.py", line 132, in new_func
    file, line, caller = inspect.stack()[1][1:4]
  File "/usr/lib/python2.6/inspect.py", line 953, in stack
    return getouterframes(sys._getframe(1), context)
  File "/usr/lib/python2.6/inspect.py", line 931, in getouterframes
    framelist.append((frame,) + getframeinfo(frame, context))
  File "/usr/lib/python2.6/inspect.py", line 900, in getframeinfo
    raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
Exception AttributeError: "'NoneType' object has no attribute 'print_exc'" in <bound method TextureRegion.__del__ of <pymt.texture.TextureRegion object at 0x9c382fc>> ignored
-------------------------------------------------------------------

(the last 2 lines is has been showing up for a while, I don't think it is related).

Has anyone seen anything like this before?  It means no more debugging in pydev, which is rough.  I will report a bug here if need be, or on the pydev list.

Best,
Rich

Mathieu Virbel

unread,
Aug 4, 2010, 4:33:25 AM8/4/10
to pymt...@googlegroups.com
Hi reakinator,

Is your problem is resolved, or still here ?

Mathieu

2010/7/28 Rich E <reaki...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "pymt-dev" group.
> To post to this group, send email to pymt...@googlegroups.com.
> To unsubscribe from this group, send email to
> pymt-dev+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pymt-dev?hl=en.
>

Rich E

unread,
Aug 9, 2010, 3:08:23 AM8/9/10
to pymt...@googlegroups.com
It isn't happening now, did you change something?

Mathieu Virbel

unread,
Aug 9, 2010, 4:08:11 AM8/9/10
to pymt...@googlegroups.com
I've fixed some bug, seem that yours was one of them :)

2010/8/9 Rich E <rich....@gmail.com>:

Reply all
Reply to author
Forward
0 new messages