On 04/08/2015 03:43 PM, Piotr Ożarowski wrote:
[Miroslav Tzonkov, 2015-04-08]
Preparing to unpack .../python3-magic_1%3a5.22+15-2_all.deb ...
import import: Unable to open XServer ().
import import: Unable to open XServer ().
import import: Unable to open XServer ().
from: can't read /var/mail/glob
from: can't read /var/mail/os
from: can't read /var/mail/os.path
/usr/bin/py3clean: 31: /usr/bin/py3clean: Syntax error: word unexpected
(expecting ")")
dpkg: warning: subprocess old pre-removal script returned error exit status
2
so the problem is most probably in old python3-magic package (not in
1:5.22+15-2 - I checked that). Did you try to install backported version
of this package at some point?
Can you show me /var/lib/dpkg/info/python3-magic.prerm file?
[root@sh2 /home/smooker]# cat /var/lib/dpkg/info/python3-magic.prerm
#!/bin/sh
set -e

# Automatically added by dhpython:
if which py3clean >/dev/null 2>&1; then
    py3clean -p python3-magic
else
dpkg -L python3-magic | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)' find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi

# End automatically added section

it looks like py3clean is invoked using non-python interpreter



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to