Bug#630787: can not update/install morituri because of a syntaxerror
A. Costa
agcosta at gis.net
Thu Jul 28 17:35:01 UTC 2011
Package: morituri
Version: 0.1.2-1
Followup-For: Bug #630787
For the record, I've had this same install bug for about a month, even
when installing with 'aptitude':
% aptitude install morituri ; echo $?
The following NEW packages will be installed:
morituri
0 packages upgraded, 1 newly installed, 0 to remove and 972 not upgraded.
Need to get 0 B/101 kB of archives. After unpacking 578 kB will be used.
Selecting previously deselected package morituri.
(Reading database ... 285392 files and directories currently installed.)
Unpacking morituri (from .../morituri_0.1.2-1_all.deb) ...
Processing triggers for man-db ...
Setting up morituri (0.1.2-1) ...
/usr/lib/python2.3/site-packages/morituri/common/checksum.py:245: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
checksum &= 0xFFFFFFFF
/usr/lib/python2.3/site-packages/morituri/common/checksum.py:259: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
checksum &= 0xFFFFFFFF
/usr/lib/python2.3/site-packages/morituri/image/table.py:506: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
discId1 &= 0xffffffff
/usr/lib/python2.3/site-packages/morituri/image/table.py:507: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
discId2 &= 0xffffffff
Compiling /usr/lib/python2.3/site-packages/morituri/rip/accurip.py ...
File "/usr/lib/python2.3/site-packages/morituri/rip/accurip.py", line 75
highest = max(d['confidence'] for d in entries)
^
SyntaxError: invalid syntax
pycentral: pycentral pkginstall: error byte-compiling files (52)
pycentral pkginstall: error byte-compiling files (52)
dpkg: error processing morituri (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
morituri
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up morituri (0.1.2-1) ...
Compiling /usr/lib/python2.3/site-packages/morituri/rip/accurip.py ...
File "/usr/lib/python2.3/site-packages/morituri/rip/accurip.py", line 75
highest = max(d['confidence'] for d in entries)
^
SyntaxError: invalid syntax
pycentral: pycentral pkginstall: error byte-compiling files (42)
pycentral pkginstall: error byte-compiling files (42)
dpkg: error processing morituri (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
morituri
255
So the bug is real enough. Last month F. Greffrath advised:
Adding ">= 2.4" in debian/pycompat
Assuming that would help, why not do it?
Fix for users. Uninstall versions of 'python' lower than '2.4':
# 'dglob' is from the 'debian-goodies' package
% aptitude remove `dglob -r '^python[0-2].[0-3]$'`
...then wait for the '[y/n] prompt and see that 'aptitude' doesn't
remove too much. If the removal list isn't ruinous, and the
'remove' goes well, then 'morituri' should install correctly:
% aptitude install morituri
HTH...
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages morituri depends on:
ii cdparanoia 3.10.2+debian-10 audio extraction tool for sampling
ii cdrdao 1:1.2.3-0.1 records CDs in Disk-At-Once (DAO)
ii gstreamer0.10-plugins-g 0.10.24-1 GStreamer plugins from the "good"
ii python 2.6.6-14 interactive high-level object-orie
ii python-cddb 1.4-5.1+b3 Python interface to CD-IDs and Fre
ii python-central 0.6.17 register and build utility for Pyt
ii python-gobject 2.28.3-3 Python bindings for the GObject li
ii python-gst0.10 0.10.21-2.1 generic media-playing framework (P
ii python-gtk2 2.24.0-1 Python bindings for the GTK+ widge
ii python-musicbrainz2 0.7.3-1 interface to the MusicBrainz XML w
ii python-pkg-resources 0.6.16-1 Package Discovery and Resource Acc
Versions of packages morituri recommends:
ii gstreamer0.10-ffmpeg 1:0.10.11-4.1 FFmpeg plugin for GStreamer
Versions of packages morituri suggests:
ii gstreamer0.10-lame 0.10.18-0.0 GStreamer lame plugin
pn python-pycdio <none> (no description available)
-- no debconf information
More information about the pkg-multimedia-maintainers
mailing list