https://trisquel.info/en/issues/7948
I have found by searching the Internet that there have been recurrent
errors over the years with the version of Python used by
Gnome-Mousetrap. Nevertheless the solution they propose to change
'python2.5' to 'python' in /usr/bin/mousetrap is already done for this
version.
The command to install it:
sudo aptitude install gnome-mousetrap
The same error messages repeat until CTRL+C is pressed. This the output
when running it from the console:
quiliro@quiliro-desktop:~$ mousetrap
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/mousetrap/app/main.py", line
50, in
from lib import httpd, dbusd, settings
File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/httpd.py",
line 31, in
import mouse
File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/mouse.py",
line 30, in
import pyatspi
File "/usr/lib/python2.7/dist-packages/pyatspi/__init__.py", line 17,
in
from gi.repository import Atspi
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in
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".',))