I’ve reinstalled python gi and mopidy gives the same error:
pi@raspberrypi:~ $ sudo apt-get install python-gi --reinstall
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
python-colorama python-distlib python-html5lib python-wheel
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 6 not upgraded.
Need to get 475 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 Index of /raspbian jessie/main python-gi armhf 3.14.0-1 [475 kB]
Fetched 475 kB in 1s (333 kB/s)
(Reading database … 126350 files and directories currently installed.)
Preparing to unpack …/python-gi_3.14.0-1_armhf.deb …
Unpacking python-gi (3.14.0-1) over (3.14.0-1) …
Setting up python-gi (3.14.0-1) …
pi@raspberrypi:~ $ mopidy
Traceback (most recent call last):
File “/usr/bin/mopidy”, line 9, in
load_entry_point(‘Mopidy==2.0.1’, ‘console_scripts’, ‘mopidy’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2476, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2190, in load
[‘name’])
File “/usr/lib/python2.7/dist-packages/mopidy/main.py”, line 8, in
from mopidy.internal.gi import Gst # noqa: F401
File “/usr/lib/python2.7/dist-packages/mopidy/internal/gi.py”, line 9, in
gi.require_version(‘Gst’, ‘1.0’)
AttributeError: ‘module’ object has no attribute ‘require_version’
I then tried reinstalling mopidy, and the same error persists:
pi@raspberrypi:~ $ sudo apt-get install mopidy --reinstall
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
python-colorama python-distlib python-html5lib python-wheel
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 6 not upgraded.
Need to get 0 B/204 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages …
(Reading database … 126350 files and directories currently installed.)
Preparing to unpack …/mopidy_2.0.1-1_all.deb …
Unpacking mopidy (2.0.1-1) over (2.0.1-1) …
Processing triggers for gnome-menus (3.13.3-6) …
Processing triggers for desktop-file-utils (0.22-1) …
Processing triggers for mime-support (3.58) …
Processing triggers for man-db (2.7.0.2-5) …
Processing triggers for systemd (215-17+deb8u5) …
Setting up mopidy (2.0.1-1) …
insserv: warning: current start runlevel(s) (empty) of script mopidy' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
mopidy’ overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script mopidy' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
mopidy’ overrides LSB defaults (0 1 6).
pi@raspberrypi:~ $ mopidy
Traceback (most recent call last):
File “/usr/bin/mopidy”, line 9, in
load_entry_point(‘Mopidy==2.0.1’, ‘console_scripts’, ‘mopidy’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2476, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2190, in load
[‘name’])
File “/usr/lib/python2.7/dist-packages/mopidy/main.py”, line 8, in
from mopidy.internal.gi import Gst # noqa: F401
File “/usr/lib/python2.7/dist-packages/mopidy/internal/gi.py”, line 9, in
gi.require_version(‘Gst’, ‘1.0’)
AttributeError: ‘module’ object has no attribute ‘require_version’
pi@raspberrypi:~ $