Failed to load libcanberra-gtk-module.so

Bug #370176 reported by skrisman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-visual (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: python-visual

To reproduce this bug follow these steps:

$ python
>>> from visual import *
>>> sphere()

The error that will initially spit out is:
Gtk-WARNING **: Failed to load module "libcanberra-gtk-module.so": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
<visual.primitives.sphere object at 0xb7e05c84>

if you try to ctrl-d or ctrl-c out of it you will recieve errors. On top of that if your using gnome-terminal and you ctrl-c out of the interpreter the terminal will become unusable. The bug makes it so that the screen that pops out paints in weird ways and can't be moved without leaving a "ghost" screen in its initial place. In addition it always paints as the top window.

There is no libcanberra-gtk-module.so in /usr/lib but curiously there is a copy in /usr/lib/gtk-2.0/modules. I tried to create a symbolic link to that module and I didn't recieve any warning, instead I recieved a segmentation fault.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: python-visual 3.2.9-4.1build1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-visual
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
skrisman (ssandboxx) wrote :
skrisman (ssandboxx)
tags: added: jaunty python
Revision history for this message
VinceLe (legoll) wrote :

I was trying to reproduce this bug to confirm it since I get the same error with other packages (not with python-visual) but can't get python visual to work this package dependencies seem not handled properly:

it required numarray (wasn't installed) or numeric (was installed):
>>> from visual import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/visual/__init__.py", line 15, in <module>
    import array_backend
  File "/usr/lib/python2.6/dist-packages/visual/array_backend.py", line 50, in <module>
    raise RuntimeError, "Neither Numeric nor numarray could be found."
RuntimeError: Neither Numeric nor numarray could be found.

Then after having installed numarray:
>>> from visual import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/visual/__init__.py", line 24, in <module>
    import crayola
ImportError: No module named crayola

I cannot find crayola in my packages...

Revision history for this message
skrisman (ssandboxx) wrote :

weird ...

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Same behavioru as the first post:

Ubuntu Jaunty up to date, with backports, 64bit,
Linux muizenberg 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux
ii python-visual 3.2.9-4.1build1 VPython 3D scientific visualization library

1 jan@muizenberg:~$python BallPro.py

Gtk-WARNING **: Failed to load module "libcanberra-gtk-module.so": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
0 jan@muizenberg:~$locate libcanberra-gtk-module.so
/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
/usr/lib32/gtk-2.0/modules/libcanberra-gtk-module.so

And if I symlink from /usr/lib to /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
then I get a segmentation fault.

When run from ipython, using %run BallPro.py, the same error displays,
and closing the vpython window exits completely from ipython.

Revision history for this message
Jan Groenewald (jan-aims) wrote :
Revision history for this message
Ma Hsiao-chun (mahsiaochun) wrote :

Is this still a issue in recent versions (12.04+) of Ubuntu?

Changed in python-visual (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.