Running bruce from a Subversion checkout

0 views
Skip to first unread message

Andy Todd

unread,
Sep 5, 2008, 9:03:44 AM9/5/08
to bruce-users
Evening all, I'm attempting to run Bruce from a subversion checkout
but don't seem to be able to make it work. I can't figure out what I'm
doing wrong so I'm hoping someone can help.

I've checked out a copy of bruce and added the parent directory to my
sys.path. I've verified that this is ok by running 'import bruce' from
the python command line. But when I try and run one of the examples I
get the following traceback:

Traceback (most recent call last):
File "/Users/andy47/Work/halfcooked/bin/bruce", line 3, in <module>
from bruce import run
File "/Users/andy47/Work/halfcooked/Python/bruce/run.py", line 10,
in <module>
from bruce import rst_parser
File "/Users/andy47/Work/halfcooked/Python/bruce/rst_parser.py",
line 14, in <module>
from bruce import interpreter, video
File "/Users/andy47/Work/halfcooked/Python/bruce/interpreter.py",
line 2, in <module>
import code
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/code.py", line 12, in <module>
__all__ = ["InteractiveInterpreter", "InteractiveConsole",
"interact",
AttributeError: 'module' object has no attribute 'PageWithTitle'

Any tips?

Thanks in advance,
Andy

Andy Todd

unread,
Sep 5, 2008, 8:44:35 PM9/5/08
to bruce-users
Sorry, my bad. I didn't do a clean checkout and had a number of .pyc
files hanging around (presumably from a previous version of bruce)
which were causing the problem.

Regards,
Andy

Andy Todd

unread,
Sep 5, 2008, 9:14:15 PM9/5/08
to bruce-users
But wait, there is more. Now I can get Bruce to run a presentation but
I can't get it to exit. When running one of the examples
(test_transition.rst) if I press 'escape' whilst the presentation is
running I get this traceback:

Traceback (most recent call last):
File "/private/var/tmp/python/python-30~44/python/Modules/_ctypes/
callbacks.c", line 206, in 'calling callback function'
File "/Users/andy47/Work/halfcooked/Python/pyglet/window/carbon/
__init__.py", line 647, in _on_key_down
self.dispatch_event('on_key_press', symbol, modifiers)
File "/Users/andy47/Work/halfcooked/Python/pyglet/window/
__init__.py", line 1072, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/Users/andy47/Work/halfcooked/Python/pyglet/event.py", line
349, in dispatch_event
if handler(*args):
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 208,
in on_key_press
director.pop()
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 332,
in pop
self.dispatch_event("on_pop")
File "/Users/andy47/Work/halfcooked/Python/pyglet/event.py", line
358, in dispatch_event
if getattr(self, event_type)(*args):
File "/Users/andy47/Work/src/bruce-tpt/cocos/director.py", line 335,
in on_pop
self.next_scene = self.scene_stack.pop()
IndexError: pop from empty list

This is on Mac OS X 10.5.4 with the latest trunk

Richard Jones

unread,
Sep 5, 2008, 10:47:39 PM9/5/08
to bruce...@googlegroups.com
On Sat, 6 Sep 2008, Andy Todd wrote:
> Sorry, my bad. I didn't do a clean checkout and had a number of .pyc
> files hanging around (presumably from a previous version of bruce)
> which were causing the problem.

IIRC Bruce also has a svn link to the pyglet SVN repos which is currently a
*bad* idea 'cos pyglet SVN is b0rkeden.

I'm a bit swamped at the moment, but will look into things soon I hope. Pyweek
starts tomorrow but.


Richard

Reply all
Reply to author
Forward
0 new messages