My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 63: PyMT examples crash after duration or clicking
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  txprog
Closed:  Oct 2009


 
Reported by mach...@gmail.com, Apr 9, 2009
[INFO   ] Fbo will use hardware Framebuffer
[INFO   ] listening for Tuio on 127.0.0.1:3333
[INFO   ] Leaving application in progress...
Traceback (most recent call last):
 File "flickthepic.py", line 114, in <module>
   runTouchApp()
 File "/usr/lib/python2.5/site-packages/pymt/mtpyglet.py", line 477,
in runTouchApp
   pymt_evloop.run()
 File "/usr/lib/python2.5/site-packages/pyglet/app/xlib.py", line 94, in run
   sleep_time = self.idle()
 File "/usr/lib/python2.5/site-packages/pymt/mtpyglet.py", line 357, in idle
   frame_dt = pyglet.clock.tick()
 File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 698, in tick
   return _default.tick(poll)
 File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 317, in tick
   item.next_ts = self._get_soft_next_ts(ts, item.interval)
 File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 585,
in _get_soft_next_ts
   if not taken(next_ts, interval / 4):
 File "/usr/lib/python2.5/site-packages/pyglet/clock.py", line 563, in taken
   if abs(item.next_ts - ts) <= e:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'


This occurs with both Linux and Windows with:
PyMT 0.2
Pyglet 1.1.3
Numpy 1.3.0
Python 2.5 and 2.6

Example taken from "Flickthepic", but occurs with most tested apps.
Apr 9, 2009
Project Member #1 txprog
Bug report in pyglet: https://code.google.com/p/pyglet/issues/detail?id=407
Status: Accepted
Labels: -Priority-Medium Priority-High Milestone-0.3 Component-Core
Apr 27, 2009
#2 mach...@gmail.com
Not a viable repair, but a quick fix for continued use while testing, a simple try/catch can be put around the "if 
abs()" statement in order to catch the TypeError.
Apr 27, 2009
Project Member #3 txprog
You can do that in your own installation of pyglet :)
We cannot release a special-pymt version of pyglet anyway :/
Apr 27, 2009
#4 mach...@gmail.com
Sorry for any confusion!  That's all I meant it as; for user testing purposes.  
May 7, 2009
Project Member #5 txprog
(No comment was entered for this change.)
Owner: txprog
May 7, 2009
Project Member #6 txprog
(No comment was entered for this change.)
Status: Blocked
Aug 29, 2009
Project Member #7 txprog
(No comment was entered for this change.)
Labels: Milestone-0.3.1
Oct 29, 2009
Project Member #8 txprog
With the switch to pyopengl, clock have been rewrited. No more bug on this.
Status: WontFix
Oct 29, 2009
Project Member #9 txprog
(No comment was entered for this change.)
Labels: -Milestone-0.3.1 Milestone-0.4

Powered by Google Project Hosting