On Mon, 2008-06-16 at 23:50 +0200, Josselin Mouette wrote: > Le lundi 16 juin 2008 à 16:33 +0100, Sam Morris a écrit : > > Package: system-config-printer > > Version: 1.0.0-1 > > Severity: grave > > Justification: renders package unusable > > > > $ system-config-printer > > Traceback (most recent call last): > > File "/usr/bin/system-config-printer", line 58, in <module> > > import pysmb > > File "/usr/share/system-config-printer/pysmb.py", line 33, in <module> > > from cupsutils.debug import * > > ImportError: No module named cupsutils.debug > > Please run "ls -l /var/lib/python-support/python2.5/cupsutils/", then > "update-python-modules -p", then the ls again.
$ ls -l /var/lib/python-support/python2.5/cupsutils/ total 16 lrwxrwxrwx 1 root root 67 2008-06-16 23:15 cupshelpers.py -> /usr/share/python-support/python-cupsutils/cupsutils/cupshelpers.py lrwxrwxrwx 1 root root 61 2008-06-16 23:15 debug.py -> /usr/share/python-support/python-cupsutils/cupsutils/debug.py lrwxrwxrwx 1 root root 68 2008-06-16 23:15 openprinting.py -> /usr/share/python-support/python-cupsutils/cupsutils/openprinting.py lrwxrwxrwx 1 root root 60 2008-06-16 23:15 ppds.py -> /usr/share/python-support/python-cupsutils/cupsutils/ppds.py $ update-python-modules -p Compiling /var/lib/python-support/python2.4/vcpx/repository/bzr.py ... File "/var/lib/python-support/python2.4/vcpx/repository/bzr.py", line 276 yield self._changesetFromRevision(parent_branch, revision) SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause $ ls -l /var/lib/python-support/python2.5/cupsutils/ total 84 lrwxrwxrwx 1 root root 67 2008-06-16 23:15 cupshelpers.py -> /usr/share/python-support/python-cupsutils/cupsutils/cupshelpers.py -rw-r--r-- 1 root root 21767 2008-06-16 23:18 cupshelpers.pyc lrwxrwxrwx 1 root root 61 2008-06-16 23:15 debug.py -> /usr/share/python-support/python-cupsutils/cupsutils/debug.py -rw-r--r-- 1 root root 1707 2008-06-16 23:18 debug.pyc -rw-r--r-- 1 root root 0 2008-06-16 23:18 __init__.py -rw-r--r-- 1 root root 142 2008-06-16 23:18 __init__.pyc lrwxrwxrwx 1 root root 68 2008-06-16 23:15 openprinting.py -> /usr/share/python-support/python-cupsutils/cupsutils/openprinting.py -rw-r--r-- 1 root root 11209 2008-06-16 23:18 openprinting.pyc lrwxrwxrwx 1 root root 60 2008-06-16 23:15 ppds.py -> /usr/share/python-support/python-cupsutils/cupsutils/ppds.py -rw-r--r-- 1 root root 22246 2008-06-16 23:18 ppds.pyc Looks like __init__.py was missing from the original directory. Note that although update-python-modules spat out that error, it doesn't do that on my laptop where I originally reported this bug, so I think it's unrelated. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
signature.asc
Description: This is a digitally signed message part