I could really use some help getting my Python/QT5 based app packaged as a flatpak. I have managed to get it to work if I first package it with Pyinstaller then Flatpak that, now I’m trying to package it as the actual Github release for eventual upload onto Flathub.
I’m getting an error saying that it can’t find pip, but pip is most definitely installed on my system and nothing I’ve tried resolves it. I’ve been at this for a few hours and tearing my hair out so any help is appreciated.
I got a little further by changing the sdk: line to sdk: org.kde.Sdk and installing the matching SDK from flathub. It’s seeing pip now (yay!) but now it’s unhappy about the PyQt5 version (I’m using the latest on PyPI 5.15.10)
I have manually created the dependency list based on what my app normally uses.
Running: pip3 install PyQt5-5.15.10-cp37-abi3-manylinux_2_17_x86_64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./PyQt5-5.15.10-cp37-abi3-manylinux_2_17_x86_64.whl
Requirement already satisfied: PyQt5-sip<13,>=12.13 in /app/lib/python3.11/site-packages (from PyQt5==5.15.10) (12.13.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd6c2e8c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pyqt5-qt5/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd6c35298d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pyqt5-qt5/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd6c2e97b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pyqt5-qt5/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd6c2e96950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pyqt5-qt5/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd6c2ea5350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pyqt5-qt5/
INFO: pip is looking at multiple versions of pyqt5 to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement PyQt5-Qt5>=5.15.2 (from pyqt5) (from versions: none)
ERROR: No matching distribution found for PyQt5-Qt5>=5.15.2
Error: module pyqt5: Child process exited with code 1