endless-path-7 crash

warning: cython not available (No module named pyximport)
_euclid not available: cannot import name _euclid
_curve not available: cannot import name _curve
<class 'pyglet.graphics.vertexdomain.VertexList'>
Traceback (most recent call last):
  File "run_game.py", line 12, in <module>
    main.main()
  File "/Local/Games/Python/PyWeek10/endless-path-7/gamelib/main.py", line 37, in main
    cocos.director.director.run(build_menu())
  File "/Local/Games/Python/PyWeek10/endless-path-7/cocos/director.py", line 412, in run
    event_loop.run()
  File "/Local/Games/Python/PyWeek10/endless-path-7/pyglet/app/base.py", line 133, in run
    self._run_estimated()
  File "/Local/Games/Python/PyWeek10/endless-path-7/pyglet/app/base.py", line 161, in _run_estimated
    timeout = self.idle()
  File "/Local/Games/Python/PyWeek10/endless-path-7/pyglet/app/base.py", line 270, in idle
    redraw_all = self.clock.call_scheduled_functions(dt)
  File "/Local/Games/Python/PyWeek10/endless-path-7/pyglet/clock.py", line 301, in call_scheduled_functions
    item.func(dt, *item.args, **item.kwargs)
  File "/Local/Games/Python/PyWeek10/endless-path-7/gamelib/tree.py", line 405, in update
    p.update(dt)
  File "/Local/Games/Python/PyWeek10/endless-path-7/gamelib/tree.py", line 307, in fade_out
    self.vertex_list1.colors[3:len(l)*4:4] = l
TypeError: sequence index must be integer, not 'slice'

(log in to comment)

Comments

Requires Python 2.6 I'm afraid.

Not sure why that slice isn't valid in 2.5 yet - haven't had time to investigate.
Thanks, that solved it. I never thought to try 2.6, because this isn't the kind of thing one expects it to make  difference about.
I looked into this a bit, and I think it might be a difference in ctypes between 2.5 and 2.6. The type of the object in question is <class 'pyglet.graphics.vertexattribute.c_ubyte_Array_800'>. It seems likely that ctypes arrays didn't support slicing before 2.6.
Yeah, that's what I figured. Thanks for confirming it.