[Python-modules-team] Bug#823615: pyuic5 --from-imports does not work, generates absolute imports
Julian Andres Klode
jak at debian.org
Fri May 6 15:27:45 UTC 2016
Package: pyqt5-dev-tools
Version: 5.6+dfsg-1
Severity: important
Hi, I'm trying to rebuild the .py files in hplip from their UI files, but pyuic5
always generates absolute imports instead of relative ones, causing the generated
code to fail.
For example, run pyuic5 --from-imports on
http://anonscm.debian.org/cgit/printing/hplip.git/tree/ui5/devmgr5_base.ui
It should generate code like this:
http://anonscm.debian.org/cgit/printing/hplip.git/tree/ui5/devmgr5_base.ui
That is:
from .printsettingstoolbox import PrintSettingsToolbox
Our pyuic5 however generates:
from printsettingstoolbox import PrintSettingsToolbox
Which causes hplip to fail to run.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'unstable-debug'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pyqt5-dev-tools depends on:
ii libc6 2.22-7
ii libgcc1 1:6.1.1-1
ii libqt5core5a 5.5.1+dfsg-16+b1
ii libqt5xml5 5.5.1+dfsg-16+b1
ii libstdc++6 6.1.1-1
ii python3 3.5.1-3
ii python3-pyqt5 5.6+dfsg-1
pyqt5-dev-tools recommends no packages.
pyqt5-dev-tools suggests no packages.
-- no debconf information
--
Debian Developer - deb.li/jak | jak-linux.org - free software dev
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.
More information about the Python-modules-team
mailing list