openoms / joininbox

A terminal based graphical menu for JoinMarket
MIT License
153 stars 20 forks source link

QTGUI doesn't work when installing jm v0.9.9 on Debian Bullseye #110

Closed openoms closed 1 year ago

openoms commented 1 year ago

There are currently no compatible QT GUI dependencies are available for Debian Bullseye.

https://t.me/joinmarketorg/21364

https://t.me/joinmarketorg/21385

openoms commented 1 year ago

On the RPi will need to get a higher version of these packages to be be able to use the client side packages.

sudo apt-get install -y python3-pyside2.qtcore python3-pyside2.qtgui \
     python3-pyside2.qtwidgets zlib1g-dev libjpeg-dev python3-pyqt5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libjpeg-dev is already the newest version (1:2.0.6-4).
python3-pyqt5 is already the newest version (5.15.2+dfsg-3).
python3-pyside2.qtcore is already the newest version (5.15.2-1).
python3-pyside2.qtgui is already the newest version (5.15.2-1).
python3-pyside2.qtwidgets is already the newest version (5.15.2-1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2+deb11u2).

Pip doesn't have it on RPi either:

(jmvenv) joinmarket@raspberrypi:~ $ python3 -m venv --upgrade pip
(jmvenv) joinmarket@raspberrypi:~ $ pip install PySide2
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
(jmvenv) joinmarket@raspberrypi:~ $ pip --version
pip 22.3.1 from /home/joinmarket/joinmarket-clientserver/jmvenv/lib/python3.9/site-packages/pip (python 3.9)
(jmvenv) joinmarket@raspberrypi:~ $ python --version
Python 3.9.2
openoms commented 1 year ago

Building PySide2 on aarch64 linux is not successful so far: https://doc.qt.io/qtforpython/gettingstarted-linux.html

sudo apt install qt5-qmake -y

git clone https://code.qt.io/pyside/pyside-setup
cd pyside-setup && git checkout 5.14
pip install -r requirements.txt

python setup.py build --qtpaths=/opt/Qt/6.4.0/gcc_64/bin/qtpaths --build-tests --ignore-git --parallel=4
***** Exception while trying to prepare bdist_wheel override class: cannot import name 'pep425tags' from 'wheel' (/home/joinmarket/joinmarket-clientserver/jmvenv/lib/python3.9/site-packages/wheel/__init__.py). Skipping wheel overriding.
Project ERROR: Unknown module(s) in QT: core gui
Unsupported python version detected. Only these python versions are supported: [(2, 7), (3, 5), (3, 6), (3, 7), (3, 8)]
openoms commented 1 year ago

Using The Raspberry OS as the main image we are stuck on Debian Bullseye: https://downloads.raspberrypi.org/raspios_arm64/images/

on a version: https://packages.debian.org/source/bullseye/pyside2

which is known to be incompatible: https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/913

The standalone arm64rpi base image can be switched to Debian Bookworm: https://github.com/openoms/joininbox/pull/112

openoms commented 1 year ago

Unfortunately it seems that will need to deactivate the QT GUI option for the Raspiblitz until the base image is upgraded.