Error running bruce.sh on ubuntu

4 views
Skip to first unread message

Luis Miguel Morillas

unread,
Jan 22, 2009, 1:26:10 PM1/22/09
to bruce-users
bruce.sh raises this errors [1] [2] when I try to open and play a
presentation:

[1] (try example.rst)
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1406, in __call__
return self.func(*args)
File "bruce-library.zip/bruce/run.py", line 103, in go
run(self.filename, options)
File "bruce-library.zip/bruce/run.py", line 227, in run
bullet_mode=options.bullet_mode)
File "bruce-library.zip/bruce/rst_parser.py", line 664, in parse
d.decode(text)
File "bruce-library.zip/pyglet/text/formats/structured.py", line
223, in decode
self.decode_structured(text, location)
File "bruce-library.zip/bruce/rst_parser.py", line 188, in
decode_structured
doctree.walkabout(DocutilsVisitor(doctree, self))
File "bruce-library.zip/docutils/nodes.py", line 170, in walkabout
if child.walkabout(visitor):
File "bruce-library.zip/docutils/nodes.py", line 162, in walkabout
visitor.dispatch_visit(self)
File "bruce-library.zip/bruce/rst_parser.py", line 649, in
dispatch_visit
method(node)
File "bruce-library.zip/bruce/rst_parser.py", line 210, in
visit_section
d = g.decode(node)
File "bruce-library.zip/pyglet/text/formats/structured.py", line
223, in decode
self.decode_structured(text, location)
File "bruce-library.zip/bruce/rst_parser.py", line 271, in
decode_structured
child.walkabout(visitor)
File "bruce-library.zip/docutils/nodes.py", line 162, in walkabout
visitor.dispatch_visit(self)
File "bruce-library.zip/bruce/rst_parser.py", line 649, in
dispatch_visit
method(node)
File "bruce-library.zip/bruce/rst_parser.py", line 617, in
visit_layout
layout.LayoutParser(self.stylesheet['layout']).parse
(node.get_layout())
File "bruce-library.zip/bruce/layout.py", line 253, in parse
getattr(self, 'handle_%s'%directive.strip())(rest.strip())
AttributeError: 'LayoutParser' object has no attribute
'handle_bgcolor'


[2] try bruce_style.rst
Traceback (most recent call last):
File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1406, in __call__
return self.func(*args)
File "bruce-library.zip/bruce/run.py", line 103, in go
run(self.filename, options)
File "bruce-library.zip/bruce/run.py", line 236, in run
if options.record:
AttributeError: class options has no attribute 'record'


What is wrong? I'm trying bruce examples from repo.

-- lm

Richard Jones

unread,
Jan 22, 2009, 4:06:04 PM1/22/09
to bruce...@googlegroups.com
On Fri, 23 Jan 2009, Luis Miguel Morillas wrote:
> AttributeError: 'LayoutParser' object has no attribute
> 'handle_bgcolor'

Please change any layout bgcolor specification from:

.. layout::
:bgcolor: black

to:

.. style::
:layout.background_color: black

Note also that layout "viewport" moved to style "layout.viewport".

Sorry for the hassle. I'll make sure the new release handles this situation
more gracefully.


> [2] try bruce_style.rst
> Traceback (most recent call last):
> File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1406, in __call__
> return self.func(*args)
> File "bruce-library.zip/bruce/run.py", line 103, in go
> run(self.filename, options)
> File "bruce-library.zip/bruce/run.py", line 236, in run
> if options.record:
> AttributeError: class options has no attribute 'record'

Ah, whoops. I forgot to test out the Tk interface before the last release.

I'll try to get Bruce 3.2.1 out today.


Richard

Luis Miguel Morillas

unread,
Jan 22, 2009, 4:28:07 PM1/22/09
to bruce...@googlegroups.com


2009/1/22 Richard Jones <r1char...@gmail.com>

thanks, richard.
I'll try it later.


-- lm
 

    Richard




Luis Miguel Morillas

unread,
Jan 23, 2009, 5:07:09 PM1/23/09
to bruce...@googlegroups.com
Now I can run the examples with 3.2.1, but something is wrong because I can't see the presentations text, but grey squares  where there must be letters. I run bruce 3.2.1 with phython 2.5 on ubuntu 8.04. Bruce doesn't output any error.


Greetings,
--

Luis Miguel


2009/1/22 Luis Miguel Morillas <mori...@gmail.com>

Richard Jones

unread,
Jan 23, 2009, 6:01:26 PM1/23/09
to bruce...@googlegroups.com
On Sat, 24 Jan 2009, Luis Miguel Morillas wrote:
> Now I can run the examples with 3.2.1, but something is wrong because I
> can't see the presentations text, but grey squares where there must be
> letters. I run bruce 3.2.1 with phython 2.5 on ubuntu 8.04. Bruce doesn't
> output any error.

Could you please include a sample of the presentation you're trying to
display? Also what operating system are you running on? Finally what OpenGL
support (hardware + driver) do you have?


Richard

Luis Miguel Morillas

unread,
Jan 24, 2009, 1:43:08 AM1/24/09
to bruce...@googlegroups.com
Hello, Richard
Data from my system:
* presentation: any (for example simple.rst from bruce-3.2.1-examples
* operative system: Ubuntu 8.04 with linux kernel 2.6.24-23 on a fresh python install
* 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
*  $ modinfo radeon
filename:       /lib/modules/2.6.24-23-generic/kernel/drivers/char/drm/radeon.ko
license:        GPL and additional rights
description:    ATI Radeon
author:         Gareth Hughes, Keith Whitwell, others.
srcversion:     08F6822DCCC32A79758487E
depends:        drm
vermagic:       2.6.24-23-generic SMP mod_unload 586
parm:           no_wb:Disable AGP writeback for scratch registers

I'm attaching a screen record too.

I tested yesterday in other ubuntu machines with no success.


Regards,

--

Luis Miguel


2009/1/24 Richard Jones <r1char...@gmail.com>
bruce_simple.png

Richard Jones

unread,
Jan 24, 2009, 6:02:30 PM1/24/09
to bruce...@googlegroups.com, Luis Miguel Morillas
On Sat, 24 Jan 2009, Luis Miguel Morillas wrote:
> Hello, Richard
> Data from my system:
> * presentation: any (for example simple.rst from bruce-3.2.1-examples
> * operative system: Ubuntu 8.04 with linux kernel 2.6.24-23 on a fresh
> python install
> * 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility
> M7 LW [Radeon Mobility 7500]
> * $ modinfo radeon
> filename:
> /lib/modules/2.6.24-23-generic/kernel/drivers/char/drm/radeon.ko
> license: GPL and additional rights
> description: ATI Radeon
> author: Gareth Hughes, Keith Whitwell, others.
> srcversion: 08F6822DCCC32A79758487E
> depends: drm
> vermagic: 2.6.24-23-generic SMP mod_unload 586
> parm: no_wb:Disable AGP writeback for scratch registers

Ah. ATI. The bane of OpenGL under Linux.


> I'm attaching a screen record too.

Yep, your OpenGL implementation is flat-out ignoring the alpha channel of the
text glyphs. There's really nothing I can do to help. I would suggest you file
a bug with the radeon driver project.

Could I please ask you to file a bug with the pyglet project? The bug tracker
is at <http://code.google.com/p/pyglet/issues/list>. Please make sure you
include the output of glxinfo with your report (the screenshot will be useful
too).


> I tested yesterday in other ubuntu machines with no success.

FWIW my development environment consists entirely of Ubuntu systems either
running nvidia (strongly recommended when using Linux) or my EEE PC 701 which
has an Intel 910GML chipset. The EEE works fine as long as I disable VSYNC and
of course the systems with nvidia just work. I've only just last week ditched
an ATI motherboard I had in an Ubuntu HTPC I was building because 3/4 of the
multimedia programs I tried to use crashed or displayed garbage. I replaced it
with an nvidia motherboard and everything's fine now.


Richard

Richard Jones

unread,
Jan 25, 2009, 6:08:25 PM1/25/09
to Luis Miguel Morillas, bruce...@googlegroups.com
[cc'ed back to the list]

On Mon, 26 Jan 2009, you wrote:
> I tested today with a new Acer Aspire One with linpus and examples worked
> fine. :)

Yep, the Aspire One has the Intel GMA 950 integrated graphics. My EEE PC has
the 900 chipset.

Did you have to disable vsync to make it work? If not then that's a nice
improvement from the 900 -> 950 :)


Richard

Luis Miguel Morillas

unread,
Jan 25, 2009, 6:15:58 PM1/25/09
to Richard Jones, bruce...@googlegroups.com


2009/1/26 Richard Jones <r1char...@gmail.com>

[cc'ed back to the list]

ups. sorry
 

No. I don't know how to disable it ;-)



Saludos,

--

Luis Miguel
 

   Richard


Reply all
Reply to author
Forward
0 new messages