mousetrap dont work

Bug #549126 reported by Pavel Mlčoch on 2010-03-26
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mousetrap (Ubuntu)
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

Jonas Zetterholm (jonas-zeta) wrote :

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

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.

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.

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  Edit
Everyone can see this information.

Other bug subscribers