mousetrap dont work

Bug #549126 reported by Pavel Mlčoch
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mousetrap (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mousetrap

In lucid, Ive got this message:

/usr/bin/mousetrap: řádek 149: /usr/bin/python2.5: No such file or directory

ProblemType: Bug
Architecture: amd64
Date: Fri Mar 26 21:53:42 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: mousetrap (not installed)
ProcEnviron:
 LANG=cs_CZ.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
SourcePackage: mousetrap
Uname: Linux 2.6.32-17-generic x86_64

Revision history for this message
Jonas Zetterholm (jonas-zeta) wrote :

Install from apt-get gives a crach report, from softwarecenter, nothing happens when trying to launch.

Revision history for this message
Kurt Kraut (kurtkraut) wrote :

I'm facing the same problem in mousetrap version 0.9-2.1. This seek for /usr/bin/python2.5 on line 149 of /usr/bin/mousetrap is an endless loop leading to very high load average and requiring the program to be manually killed.

Revision history for this message
dstaubsauger (dickerstaubsauger) wrote :

The same bug (or a very similar one) is still present in mousetrap on an up-to-date Ubuntu Precise.

When starting mousetrap from the shell the following error message appears over and over:

---

ImportError: could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/main.py", line 50, in <module>
    from lib import httpd, dbusd, settings
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/httpd.py", line 31, in <module>
    import mouse
  File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/mouse.py", line 30, in <module>
    import pyatspi
  File "/usr/lib/python2.7/dist-packages/pyatspi/__init__.py", line 17, in <module>
    from gi.repository import Atspi
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))

---

The mousetrap process spawns instances of python, which cause a 100% load on one CPU.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mousetrap (Ubuntu):
status: New → Confirmed
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.