Package: calibre
Version: 5.26.0+dfsg-2
Severity: normal
Dear Maintainer,
Installing calibre 5.26.0+dfsg-2 on a system with pypy3 7.3.5+dfsg-2
installed produced the following message:
Setting up calibre (5.26.0+dfsg-2) ...
Failed to byte-compile /usr/lib/calibre/calibre/utils/formatter.py: File
"/usr/lib/calibre/calibre/utils/formatter.py", line 928
if v := self.expr(expr):
^
SyntaxError: invalid syntax
It appears that /var/lib/dpkg/info/calibre.postinst contains 2 calls
to py3compile and pypy3compile for /usr/lib/calibre, first with
-V 3.7-, then with -V 3.9:
-8<--[calibre.postinst from line 28]----------------------------------
if which py3compile >/dev/null 2>&1; then
py3compile -p calibre /usr/lib/calibre -V 3.7-
fi
if which pypy3compile >/dev/null 2>&1; then
pypy3compile -p calibre /usr/lib/calibre -V 3.7- || true
fi
# Automatically added by dh_python3
if which py3compile >/dev/null 2>&1; then
py3compile -p calibre /usr/lib/calibre -V 3.9
fi
if which pypy3compile >/dev/null 2>&1; then
pypy3compile -p calibre /usr/lib/calibre -V 3.9 || true
fi
if which py3compile >/dev/null 2>&1; then
py3compile -p calibre /usr/share/calibre -V 3.9
fi
if which pypy3compile >/dev/null 2>&1; then
pypy3compile -p calibre /usr/share/calibre -V 3.9 || true
fi
-8<--[calibre.postinst]-----------------------------------------------
On my system, `pypy3compile -p calibre /usr/lib/calibre -V 3.7-`
produces the error.
It appears that removing the calls to py3compile and pypy3compile from
debian/calibre.postinst in favor of the ones added by dh_python3 would
avoid the issue.
Thanks,
Kevin
-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (990, 'testing-debug'), (990, 'testing'), (500,
'unstable-debug'), (500, 'stable-debug'), (500, 'oldoldstable'), (500,
'unstable'), (101, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.14.0-rc7 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages calibre depends on:
ii calibre-bin 5.26.0+dfsg-2
ii dpkg 1.20.9
ii fonts-liberation2 2.1.4-2
ii imagemagick 8:6.9.11.60+dfsg-1.3
ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.3
ii libjpeg-turbo-progs 1:2.0.6-4
ii libjxr-tools 1.1-6+b1
ii optipng 0.7.7-1+b1
ii poppler-utils 20.09.0-3.1
ii python3 3.9.2-3
ii python3-apsw 3.34.0-r1-1
ii python3-bs4 4.9.3-1
ii python3-chardet 4.0.0-1
ii python3-chm 0.8.6-2+b3
ii python3-css-parser 1.0.6-1
ii python3-cssselect 1.1.0+ds-1
ii python3-cssutils 1.0.2-3
ii python3-dateutil 2.8.1-6
ii python3-feedparser 5.2.1-3
ii python3-html2text 2020.1.16-1
ii python3-html5-parser 0.4.9-3+b3
ii python3-html5lib 1.1-3
ii python3-jeepney 0.6.0-1
ii python3-lxml 4.6.3+dfsg-0.1
ii python3-markdown 3.3.4-1
ii python3-mechanize 1:0.4.5-2
ii python3-msgpack 1.0.2-2
ii python3-netifaces 0.10.9-0.2+b3
ii python3-pil 8.1.2+dfsg-0.3
ii python3-pkg-resources 52.0.0-4
ii python3-py7zr 0.11.3+dfsg-1
ii python3-pygments 2.7.1+dfsg-2.1
ii python3-pyparsing 2.4.7-1
ii python3-pyqt5 5.15.2+dfsg-3
ii python3-pyqt5.qtsvg 5.15.2+dfsg-3
ii python3-pyqt5.qtwebengine 5.15.2-2
ii python3-pyqt5.sip 12.8.1-1+b2
ii python3-regex 0.1.20201113-1
ii python3-routes 2.5.1-1
ii python3-speechd 0.10.2-2
ii python3-zeroconf 0.26.1-1
ii python3.9 3.9.2-1
ii xdg-utils 1.1.3-4.1
Versions of packages calibre recommends:
ii python3-dnspython 2.0.0-1
pn python3-ipython <none>
ii udisks2 2.9.3-1
Versions of packages calibre suggests:
ii python3-openssl 20.0.1-1
pn python3-unrardll <none>
-- no debconf information