[PyQt] Missing application resources when run in one Linux distro but not another

Eli Schwartz eschwartz at archlinux.org
Sun Mar 22 16:22:03 GMT 2020


On 3/22/20 12:05 PM, Damon Lynch wrote:
> Your question just now led me to the solution: the package
> python3-pyqt5.qtsvg needed to be installed. The problem is a packaging
> bug in the Debian package for Rapid Photo Downloader that only shows
> up in Pop!_OS because it has different default packages than Debian /
> Ubuntu.
> 
> Yikes. This may affect other packages too. If you are reading this
> Dmitry Shachnev, why does the package python3-pyqt5 not require
> python3-pyqt5.qtsvg? I'm not questioning the wisdom of the decision --
> I'm just curious why.

Not everyone needs qt5-svg support, just like not everyone needs
qt5-webkit just because PyQt5 comes with the relevant bindings. It's
only "required", if you actually import those bindings, so why should
python3-pyqt5 (which I assume is the Debian package containing QtCore
bindings) depend on python3-pyqt5.qtsvg (which I guess has the QtSvg
bindings)?

Failure to install all needed bindings *should* result in python
ImportErrors for the PyQt5.QtSvg module whenever it is being explicitly
imported for explicitly manipulating svg files via python.

Is this actually your problem, by the way? Or do you only need
${qtlibdir}/plugins/imageformats/libqsvg.so in order to support QImages
in the svg format, which would be indirectly satisfied by
python3-pyqt5.qtsvg simply due to depending on libqt5svg5?

It's more likely that packages which explicitly make use of svg resource
files need to depend on the right image plugin to handle those files,
totally unrelated to python.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200322/db0e80bf/attachment.sig>


More information about the PyQt mailing list