I have a critical PyQt5 application which is still in the migration to Python3 phases.
K/Ubuntu 20.04 has removed the required packaging to install PyQt5 for Python 2.7. I understand the importance of these apps to migrate to Py3, but I'm the user who still needs the apps. I'm glad Ubuntu has made Python 2.7 still available, even if they've made Py3 the default. But I need to have continued access to this and couple other apps, and I would like to be able to upgrade all my systems to Ubuntu 20.04.
Expressly, I need PyQt5 and QtWebKit (yes, I know QtWebKit was also deprecated).
I am trying not to make my machine too much of a mess in the process. Would like an elegant and simple method.
So far, I've tried numerous incantations of pip install (although I will humbly accept if someone is able to make it work through Pip)
I've added in previous deb repos from previous Ubuntu versions, Eoan and Bionic, and had no luck so far. I don't doubt there is a way to make this approach successful... but I haven't found it yet. I'd love for some help.
I have many colleagues who also use this software. Best answer for me would be one I could easily point others to and have them not need to be a master of the Linux universe. Preferably not "download source and start compiling".
Thanks in advance!
attempting to install Bionic's python2/pyqt5 packages on 20.04 breaks because the 18.04
python-pyqt5
requiresqtbase-abi-5-9-5
which causes significant conflicts on 20.04 if you try to install it. however, that package provides nothing necessary. therefore, provide your own, to fulfill that dependency.here's the solution (high level):
bionic
back into your apt repositoriesdetailed solution:
bionic
to apt repos:that should get you a working python2 pyqt5 environment with qtwebkit.
this fix makes Bionic 18.04's
python-pyqt5
work on Focal 20.04, so all the packages that depend on it (like qtwebkit) work as well.once you build this, you can share it with your friends. i would have provided the deb file here, but there's no easy way to do it. plus this way, you get to see what's going on at each step.
hope this helps! @
Best temporary solution so far (with caveat):
This will allow my app to work. However, each time I
apt install
orapt upgrade
, it complains about the broken dependency and refuses to install or update until I resolve it. Probably the best answer would be to create a .deb package that providesqtbase-abi-5-9-5
which is what the broken dependency is. This appears to be Ubuntu's way of making Python2.7 QT hooks not work.Anyone have ideas on a better solution (until the app is ported to Py3)? Is there a way to make
apt
work properly, while ignoring this particular broken dependency?