Bug#821883: ImportError: When using gi.repository you must not import static modules like "gobject"
Anthony DeRobertis
anthony at derobert.net
Wed Apr 20 07:40:22 UTC 2016
Package: morituri
Version: 0.2.3-2
Severity: grave
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
After a recent apt-get upgrade, appears morituri (from experimental) no
longer works at all (traceback below). I attempted to fix it myself, but
I don't know Python so I didn't really get anywhere...
$ rip cd rip
Using configured read offset 6
Checking device /dev/sr0
CDDB disc id: 3d0cb416
MusicBrainz disc id fmCeZFVMZYuZ5ZGySzKhWgDlNNM-
MusicBrainz lookup URL https://musicbrainz.org/cdtoc/attach?toc=1+22+244050+150+17881+24489+34744+62335+65971+67088+70519+74719+86494+93347+98152+104826+128780+146665+148207+152406+162293+176335+193912+204024+233637&tracks=22&id=fmCeZFVMZYuZ5ZGySzKhWgDlNNM-
Disc duration: 00:54:12.000, 22 audio tracks
Matching releases:
Artist : Richard Strauss; Staatskapelle Weimar, Antoni Wit
Title : An Alpine Symphony
Duration: 00:54:11.992
URL : https://musicbrainz.org/release/084a9bbb-c722-40ad-8f32-097d697b7b09
Release : 084a9bbb-c722-40ad-8f32-097d697b7b09
Type : Album
Traceback (most recent call last):
File "/usr/bin/rip", line 46, in <module>
h.handleImportError(e)
File "/usr/bin/rip", line 41, in <module>
sys.exit(main.main(sys.argv[1:]))
File "/usr/lib/python2.7/dist-packages/morituri/rip/main.py", line 50, in main
h.handleImportError(e)
File "/usr/lib/python2.7/dist-packages/morituri/rip/main.py", line 45, in main
ret = c.parse(argv)
File "/usr/lib/python2.7/dist-packages/morituri/rip/main.py", line 123, in parse
logcommand.LogCommand.parse(self, argv)
File "/usr/lib/python2.7/dist-packages/morituri/extern/command/command.py", line 401, in parse
return self.subCommands[command].parse(args[1:])
File "/usr/lib/python2.7/dist-packages/morituri/extern/command/command.py", line 401, in parse
return self.subCommands[command].parse(args[1:])
File "/usr/lib/python2.7/dist-packages/morituri/extern/command/command.py", line 363, in parse
ret = self.do(args)
File "/usr/lib/python2.7/dist-packages/morituri/rip/cd.py", line 160, in do
self.doCommand()
File "/usr/lib/python2.7/dist-packages/morituri/rip/cd.py", line 276, in doCommand
self.program.result.gstreamerVersion = gstreamer.gstreamerVersion()
File "/usr/lib/python2.7/dist-packages/morituri/common/gstreamer.py", line 59, in gstreamerVersion
import gi
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 39, in <module>
raise ImportError(_static_binding_error)
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". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
- -- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing'), (500, 'stable'), (130, 'unstable'), (120, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages morituri depends on:
ii cdparanoia 3.10.2+debian-11
ii cdrdao 1:1.2.3-2+b1
ii gstreamer1.0-plugins-good 1.8.0-1+b1
ii python 2.7.11-1
ii python-cddb 1.4-5.2
ii python-gi 3.18.2-2+b1
ii python-gobject 3.18.2-2
ii python-gst-1.0 1.8.0-1
ii python-musicbrainzngs 0.5-2
ii python-pkg-resources 18.8-1
Versions of packages morituri recommends:
ii gstreamer1.0-libav 1:1.8.0-1+b1
ii gstreamer1.0-tools 1.8.0-2
ii python-xdg 0.25-4
Versions of packages morituri suggests:
ii gstreamer1.0-plugins-ugly 1.8.0-1
ii python-gtk2 2.24.0-4
pn python-pycdio <none>
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlcXMmIACgkQ+z+IwlXqWf5tuQCfRpYKL8hVlkjvPczvzrSQOt66
tiYAn1XyXHpFtX7G5/7pxkLzH3T//gGQ
=zOKV
-----END PGP SIGNATURE-----
More information about the pkg-multimedia-maintainers
mailing list