gnome-mousetrap has a Python error

Zugewiesen:nicht zugewiesen

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/", line 50, in
from lib import httpd, dbusd, settings
File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/", line 31, in
import mouse
File "/usr/lib/python2.7/dist-packages/mousetrap/app/lib/", line 30, in
import pyatspi
File "/usr/lib/python2.7/dist-packages/pyatspi/", line 17, in
from gi.repository import Atspi
File "/usr/lib/python2.7/dist-packages/gi/", 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".',))