gnome-mousetrap installs but does not run

Bug #470193 reported by Lachlan Currie
84
This bug affects 19 people
Affects Status Importance Assigned to Milestone
gnome-mousetrap (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by 816_8055

Bug Description

Binary package hint: gnome-mousetrap

Ubuntu version: 9.10 64 bit
Installed Package version : 0.3+svn17-3
when run from the Applications menu nothing happens
when first run from the terminal it falls in a loop for missing python 2.5
when run with python2.5 installed following output occurs
*NOTE the following output comes from a live CD install with the only change from fresh is 'sudo apt-get install python2.5 python2.5-dev gnome-mousetrap' & this output has been replicated on a full install of ubuntu 9.10 64bit with other package changes.

ubuntu@ubuntu:~$ mousetrap
DEBUG: mousetrap.mouse -> GNOME desktop has been detected
DEBUG: mouseTrap -> Settings have been loaded
DEBUG: mouseTrap -> DBus Service has been started
ERROR: mousetrap -> Main Gui load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 171, in showMainGui
    [''])
  File "/usr/lib/pymodules/python2.5/mouseTrap/mainGui.py", line 41, in <module>
    from opencv import cv
ImportError: No module named opencv
This modules depends of opencv libraries
ERROR: mousetrap -> Camera Module load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 188, in startCam
    [''])
  File "/usr/lib/pymodules/python2.5/mouseTrap/cam.py", line 41, in <module>
    import ocvfw
  File "/usr/lib/pymodules/python2.5/mouseTrap/ocvfw.py", line 46, in <module>
    class ocvfw:
  File "/usr/lib/pymodules/python2.5/mouseTrap/ocvfw.py", line 65, in ocvfw
    def cmAddMessage(self, message, font = cv.CV_FONT_HERSHEY_COMPLEX, poss = None ):
NameError: name 'cv' is not defined
ERROR: mousetrap -> Events Handler Load Failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 210, in startEventsHandler
    modules["events"].startMapperListener( modules["gui"].mapper )
KeyError: 'gui'

summary: - package fails to run
+ gnome-mousetrap installs but does not run
Revision history for this message
Lachlan Currie (lachlancurrie) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: gnome-mousetrap 0.3+svn17-3
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Lachlan Currie (lachlancurrie) wrote : Dependencies.txt
Revision history for this message
Lachlan Currie (lachlancurrie) wrote : XsessionErrors.txt
tags: added: apport-collected
Revision history for this message
quest (diego-pedrosa) wrote :
Download full text (6.6 KiB)

Hi,

The same is happening with me, I tried to install the the phyton2.5 and still not working.
But there are two differents packages available on the karmic: gnome-mousetrap and mousetrap. I tried to install the mousetrap too by apt-get and I got a different message error.

*** buffer overflow detected ***: mousetrap terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x4[0x301de8]
/lib/tls/i686/cmov/libc.so.6[0x300e20]
/lib/tls/i686/cmov/libc.so.6[0x300558]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x28a59e]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x60a)[0x25e14a]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xad)[0x30060d]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x30054d]
mousetrap[0x804b919]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x237b56]
mousetrap(__gxx_personality_v0+0x5d)[0x8049211]
======= Memory map: ========
00110000-0015e000 r-xp 00000000 08:05 86143 /usr/lib/libmikmod.so.2.0.4
0015e000-0015f000 r--p 0004e000 08:05 86143 /usr/lib/libmikmod.so.2.0.4
0015f000-00160000 rw-p 0004f000 08:05 86143 /usr/lib/libmikmod.so.2.0.4
00160000-00161000 rw-p 00000000 00:00 0
00161000-00168000 r-xp 00000000 08:05 6041 /usr/lib/libvorbisfile.so.3.2.0
00168000-00169000 r--p 00007000 08:05 6041 /usr/lib/libvorbisfile.so.3.2.0
00169000-0016a000 rw-p 00008000 08:05 6041 /usr/lib/libvorbisfile.so.3.2.0
0016a000-001e0000 r-xp 00000000 08:05 5261 /usr/lib/libdirectfb-1.2.so.0.7.0
001e0000-001e1000 ---p 00076000 08:05 5261 /usr/lib/libdirectfb-1.2.so.0.7.0
001e1000-001e2000 r--p 00076000 08:05 5261 /usr/lib/libdirectfb-1.2.so.0.7.0
001e2000-001e3000 rw-p 00077000 08:05 5261 /usr/lib/libdirectfb-1.2.so.0.7.0
001e3000-001e4000 rw-p 00000000 00:00 0
001e4000-001eb000 r-xp 00000000 08:05 527016 /lib/tls/i686/cmov/librt-2.10.1.so
001eb000-001ec000 r--p 00006000 08:05 527016 /lib/tls/i686/cmov/librt-2.10.1.so
001ec000-001ed000 rw-p 00007000 08:05 527016 /lib/tls/i686/cmov/librt-2.10.1.so
001ed000-001f2000 r-xp 00000000 08:05 5788 /usr/lib/libogg.so.0.6.0
001f2000-001f3000 r--p 00004000 08:05 5788 /usr/lib/libogg.so.0.6.0
001f3000-001f4000 rw-p 00005000 08:05 5788 /usr/lib/libogg.so.0.6.0
001f4000-001f6000 r-xp 00000000 08:05 5034 /usr/lib/libXau.so.6.0.0
001f6000-001f7000 r--p 00001000 08:05 5034 /usr/lib/libXau.so.6.0.0
001f7000-001f8000 rw-p 00002000 08:05 5034 /usr/lib/libXau.so.6.0.0
001f8000-001fc000 r-xp 00000000 08:05 5045 /usr/lib/libXdmcp.so.6.0.0
001fc000-001fd000 rw-p 00003000 08:05 5045 /usr/lib/libXdmcp.so.6.0.0
001fd000-0020b000 r-xp 00000000 08:05 58243 /usr/lib/libXext.so.6.4.0
0020b000-0020c000 r--p 0000d000 08:05 58243 /usr/lib/libXext.so.6.4.0
0020c000-0020d000 rw-p 0000e000 08:05 58243 /usr/lib/libXext.so.6.4.0
0020d000-00216000 r-xp 00000000 08:05 5041 /usr/lib/libXcursor.so.1.0.2
00216000-00217000 r--p 00008000 08:05 5041 /usr/lib/libXcursor.so.1.0.2
00217000-00218000 rw-p 00009000 08:05 5041 /usr/lib/libXcursor.so.1.0.2
00220000-00221000 r-xp 00000000 00:00 0 [vdso]
00221000-0035f000 r-xp 00000000 08:05 525356 /lib/tls/i686/cmov/libc-2.10.1.so
0035f000-00361000 r--p 0013e000 08:05 525356 /lib/tls/i686/cmov/libc-2.10.1.so
00361000-00362000 rw-p 00140000 08:05 525356 /lib/tls...

Read more...

Revision history for this message
a1call (a1call) wrote :

Ditto, please resolve if you can. Mine is 32 bit ubuntu 9.10.
Thank you.

Revision history for this message
Brady Merriweather (brady-merriweather) wrote :

Getting the error. What messages it's spewing: (installng bug-buddy) right now:

o0splitpaw0o@o0splitpaw0o-desktop:~$ mousetrap
DEBUG: mousetrap.mouse -> GNOME desktop has been detected
DEBUG: mouseTrap -> Settings have been loaded
DEBUG: mouseTrap -> DBus Service has been started
ERROR: mousetrap -> Main Gui load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 171, in showMainGui
    [''])
  File "/usr/lib/pymodules/python2.5/mouseTrap/mainGui.py", line 41, in <module>
    from opencv import cv
ImportError: No module named opencv
This modules depends of opencv libraries
ERROR: mousetrap -> Camera Module load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 188, in startCam
    [''])
  File "/usr/lib/pymodules/python2.5/mouseTrap/cam.py", line 41, in <module>
    import ocvfw
  File "/usr/lib/pymodules/python2.5/mouseTrap/ocvfw.py", line 46, in <module>
    class ocvfw:
  File "/usr/lib/pymodules/python2.5/mouseTrap/ocvfw.py", line 65, in ocvfw
    def cmAddMessage(self, message, font = cv.CV_FONT_HERSHEY_COMPLEX, poss = None ):
NameError: name 'cv' is not defined
ERROR: mousetrap -> Events Handler Load Failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/mouseTrap/mouseTrap.py", line 210, in startEventsHandler
    modules["events"].startMapperListener( modules["gui"].mapper )
KeyError: 'gui'

Revision history for this message
Raik (jinto) wrote :

I had the same problem. I've uninstalled python2.5 completly but then i got the following error:

/usr/bin/mousetrap: Zeile 149: /usr/bin/python2.5: No such file or directory

I've changed the python2.5 to python2.6 in file /usr/bin/moustrap and now it works for me.

Revision history for this message
saidimu apale (saidimu) wrote :

On karmic 64-bit, I changed a line in /usr/bin/mousetrap from python2.5 to python and now it works for me.

This is how I did it from the command line:

$ sudo gedit /usr/bin/mousetrap

Search for "python" (there's only 1 occurrence). Replace "python2.5" with "python" and you're good to do.

Revision history for this message
agust (z-agust) wrote :

On Ubuntu 9.10 Netbook Remix , I have the same problem, installed it but mousetrap do not run.

Revision history for this message
alej0 (alej0varas) wrote :

Hi all,

#8 works for me ;) but I think the problem is that there is no opencv module for python2.5 and "mousetrap" needs python2.5 as a dependency.

Revision history for this message
fredrik (fredrik-pipemore) wrote :

Ubuntu 9.10
Trying to use mousetrap without luck.
I use Python2.6 and changed the /usr/bin/mousetrap from python2.5 to python. But still errors:

DEBUG: mousetrap.mouse -> GNOME desktop has been detected
DEBUG: mouseTrap -> Settings have been loaded
DEBUG: mouseTrap -> DBus Service has been started
DEBUG: scripts -> Mousetrap screenProfile Profile has been loaded
ERROR: scripts -> The Profile load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/mouseTrap/scriptHdlr.py", line 57, in _loadThirdProfiles
    modes[prof.setName] = prof.Profile
AttributeError: 'module' object has no attribute 'Profile'
DEBUG: scripts -> Mousetrap dragProfile Profile has been loaded
DEBUG: scripts -> Mousetrap holdProfile Profile has been loaded
ERROR: mainGui -> All arguments must be INT
ERROR: mainGui -> All arguments must be INT
DEBUG: events -> New Area Listener Added
DEBUG: events -> New Area Listener Added
DEBUG: scripts -> Profile Started
DEBUG: mouseTrap -> MainGui has been started
DEBUG: ocvfw -> cmStartCamera: Camera Started
DEBUG: mouseTrap -> Camera Module has been started
DEBUG: mouseTrap -> Events handler has been started

//Fredrik

Revision history for this message
Alessandro (alcio313) wrote :

Same to me! HELP

Revision history for this message
Alessandro (alcio313) wrote :

http://live.gnome.org/MouseTrap/Installation; I think python 2.6-dev will help me

Revision history for this message
ementos (ementos) wrote :

For me works #8, but not at all
when I want to help:

jozio@ementos-desktop:~$ mousetrap -v
DEBUG: mousetrap.mouse -> GNOME desktop has been detected
DEBUG: mouseTrap -> Settings have been loaded
0.3
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/mouseTrap/mouseTrap.py", line 343, in start
    quit(0)
  File "/usr/lib/pymodules/python2.6/mouseTrap/mouseTrap.py", line 425, in quit
    modules["events"].stopMapperListener() if settings.getboolean( "main", "startCam") else None
KeyError: 'events'

Revision history for this message
Dave-B (david-balch) wrote :

Using version 0.3+svn17-3 in karmic...

/usr/bin/mousetrap references /usr/bin/python2.5, which isn't installed.

Changing the reference to /usr/bin/python2.6 or /usr/bin/python and running gives the error

/usr/bin/mousetrap: line 140: 7538 Killed /usr/bin/python -c "import mouseTrap.mouseTrap as mouseTrap; mouseTrap.start();" "$ARGS"

Changed in gnome-mousetrap (Ubuntu):
status: New → Confirmed
Revision history for this message
Dave-B (david-balch) wrote :

I guess there must have been some Python updates or similar, as Mousetrap now runs. Unfortunately I don't get any video from my webcam see bug #521096.

Revision history for this message
TYLER AF (tgcfootballmcxv) wrote :

I'm new to all this but I did what saidimu apale said and got it to work.

After you edit it, just type in the command line:

sudo mousetrap

I don't think it runs quite right though

Revision history for this message
Iván Pérez (ivan.perez-keera.es) wrote :

Same problem here (with Lucid).
After changing line 149 manually to "/usr/bin/python2.6 ....", I get the following error:

Xlib.protocol.request.QueryExtension
DEBUG: mouseTrap -> Settings have been loaded
DEBUG: mouseTrap -> DBus Service has been started
ERROR: scripts -> The Profile load failed
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/mouseTrap/scriptHdlr.py", line 57, in _loadThirdProfiles
    modes[prof.setName] = prof.Profile
AttributeError: 'module' object has no attribute 'Profile'
DEBUG: scripts -> Mousetrap holdProfile Profile has been loaded
DEBUG: scripts -> Mousetrap dragProfile Profile has been loaded
DEBUG: scripts -> Mousetrap screenProfile Profile has been loaded
ERROR: mainGui -> All arguments must be INT
ERROR: mainGui -> All arguments must be INT
DEBUG: events -> New Area Listener Added
DEBUG: events -> New Area Listener Added
DEBUG: scripts -> Profile Started
DEBUG: mouseTrap -> MainGui has been started
DEBUG: ocvfw -> cmStartCamera: Camera Started
DEBUG: mouseTrap -> Camera Module has been started
DEBUG: mouseTrap -> Events handler has been started
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/mouseTrap/cam.py", line 142, in _checkImg
    self.cmQueryCapture( flip = self.settings.getboolean( "cam", "flipImage" ) )
  File "/usr/lib/pymodules/python2.6/mouseTrap/ocvfw.py", line 273, in cmQueryCapture
    self.img.origin = frame.origin
  File "/usr/lib/pymodules/python2.6/opencv/cv.py", line 2097, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, CvMat, name, value)
  File "/usr/lib/pymodules/python2.6/opencv/cv.py", line 48, in _swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/usr/lib/pymodules/python2.6/opencv/cv.py", line 41, in _swig_setattr_nondynamic
    if method: return method(self,value)
RuntimeError: openCV Error:
        Status=The function/feature is not implemented
        function name=CvMat_origin_get
        error message=IplImage is replaced by CvMat in Python, so its fields are read-only
        file_name=_cv.cpp
        line=6080
DEBUG: events -> Event's handler has been stoped

Revision history for this message
Julien Forgeat (julienforgeat) wrote :

Got the exact same issue as Iván with Lucid.

Switched python2.5 to python 2.6 and now got this "The function/feature is not implemented" error.

Webcam is working fine in Cheese.

Revision history for this message
Ville Ranki (ville-ranki) wrote :

On Natty mousetrap doesn't start from menu, and from console it floods the following:

/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
/usr/bin/mousetrap: line 148: /usr/bin/python2.6: No such file or directory
...

after installing python2.6 manually, it floods:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/mousetrap/app/main.py", line 91, in start
    idm = pocv.get_idm(self.cfg.get("main", "algorithm"))
  File "/usr/lib/pymodules/python2.6/mousetrap/ocvfw/pocv.py", line 43, in get_idm
    [''])
  File "/usr/lib/pymodules/python2.6/mousetrap/ocvfw/idm/forehead.py", line 32, in <module>
    from mousetrap.ocvfw.dev.camera import Capture, Point
  File "/usr/lib/pymodules/python2.6/mousetrap/ocvfw/dev/camera.py", line 34, in <module>
    from mousetrap.ocvfw import _ocv as ocv
  File "/usr/lib/pymodules/python2.6/mousetrap/ocvfw/_ocv.py", line 282, in <module>
    class OcvfwPython(OcvfwBase):
  File "/usr/lib/pymodules/python2.6/mousetrap/ocvfw/_ocv.py", line 293, in OcvfwPython
    [''])
ImportError: No module named opencv.cv

python-opencv is installed, so i have no clue what to do next. Packager, please test properly in Natty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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