Open BTCBellyButton opened 2 months ago
JM should work with Python 3.12. Will try to reproduce with Ubuntu 24.04 VPS.
FYI My initial issue after upgrading from 22.04.6 to 24.04.1 LTS.
Sep 18 12:36:42 jump systemd[1]: Started yg-privacyenhanced.service - yg-privacyenhanced.
Sep 18 12:36:42 jump sh[2015552]: Traceback (most recent call last):
Sep 18 12:36:42 jump sh[2015552]: File "/home/go/joinmarket/scripts/yg-privacyenhanced.py", line 5, in <module>
Sep 18 12:36:42 jump sh[2015552]: from jmbase import get_log, jmprint, EXIT_ARGERROR
Sep 18 12:36:42 jump sh[2015552]: ModuleNotFoundError: No module named 'jmbase'
Sep 18 12:36:42 jump systemd[1]: yg-privacyenhanced.service: Main process exited, code=exited, status=1/FAILURE
Sep 18 12:36:42 jump systemd[1]: yg-privacyenhanced.service: Failed with result 'exit-code'.
When trying to re-install it (I just now reproduced it. Maybe the installer should check <3.13 instead of <3.12?):
INFO: pip is looking at multiple versions of joinmarket to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'joinmarket' requires a different Python: 3.12.3 not in '<3.12,>=3.8'
Joinmarket was not installed. Exiting.
Also, shouldn't the Python version be checked at the very beginning of the install process?
When trying to re-install it (I just now reproduced it. Maybe the installer should check <3.13 instead of <3.12?):
Ahh, yes, 3.12 support is in current master, but not in the last release (0.9.11). Another reason to do new release soon!
Gotcha!
In the meantime my "workaround" could be helpful for others moving to the most recent version of Ubuntu or just with a too recent version of python on their system.
Today I upgraded to Ubuntu 24.04.1 and JM yg-privacyenhanced.py didn't work anymore because of the different way Ubuntu new release treats Python.
So I went on and reinstalled it but it failed because the default Python version is the 3.12.3.
In order for the "easy" installation to work on Ubuntu 24.04 I had to do the following:
The Python 3.10 packages needed are not available in the default repositories of Ubuntu new version. To install Python 3.10 on Ubuntu 24.04, you'll need to add the appropriate PPA (Personal Package Archive) and then install it.
Here’s how to install Python 3.10 along with its development tools:
Add the deadsnakes PPA, which contains more Python versions:
sudo add-apt-repository ppa:deadsnakes/ppa
Update the package list:
sudo apt update
Install Python 3.10 and related packages:
sudo apt install python3.10 python3.10-venv python3.10-dev
In the directory where you extracted the JM release, create and activate a virtual environment:
python3 -m venv jmvenv
source jmvenv/bin/activate
Run ./install.sh and when asked if removing and recreating the jmvenv answer No.
That's it. At least it worked for me.