Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install.sh fails on Ubuntu 24.04.1 (because of python 3.12) #1730

Open
BTCBellyButton opened this issue Sep 18, 2024 · 5 comments
Open

Install.sh fails on Ubuntu 24.04.1 (because of python 3.12) #1730

BTCBellyButton opened this issue Sep 18, 2024 · 5 comments

Comments

@BTCBellyButton
Copy link
Contributor

BTCBellyButton commented Sep 18, 2024

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.

@kristapsk
Copy link
Member

JM should work with Python 3.12. Will try to reproduce with Ubuntu 24.04 VPS.

@BTCBellyButton
Copy link
Contributor Author

BTCBellyButton commented Sep 19, 2024

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.

@BTCBellyButton
Copy link
Contributor Author

Also, shouldn't the Python version be checked at the very beginning of the install process?

@kristapsk
Copy link
Member

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!

@BTCBellyButton
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants