ERPNext on Noble Numbat (Daily) - RestrictedPython~=6.2 Error

Hi - I’m trying the install of ERPNext (15) on a recent daily of the Noble Numbat server - as per:
https://github.com/flexcomng/erpnext_quick_install

Getting this error at the Frappe install:

Collecting PyYAML~=6.0.1 (from frappe==15.18.0)
Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
INFO: pip is looking at multiple versions of frappe to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following yanked versions: 3.6.0a1
ERROR: Ignored the following versions that require a different python version: 5.1 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.10; 5.2 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.11; 5.2a1.dev0 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.11; 5.3 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.11; 5.3a1.dev0 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.12; 5.4 Requires-Python >=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., <3.11; 6.0 Requires-Python >=3.6, <3.12; 6.0a1.dev0 Requires-Python >=3.6, <3.12; 6.1 Requires-Python >=3.6, <3.12; 6.2 Requires-Python >=3.6, <3.12
ERROR: Could not find a version that satisfies the requirement RestrictedPython~=6.2 (from frappe) (from versions: 3.4.2, 3.4.3, 3.5.0, 3.5.1, 3.5.2, 3.6.0, 4.0a1, 4.0a2, 4.0a3, 4.0b1, 4.0b2, 4.0b3, 4.0b4, 4.0b5, 4.0b6, 4.0b7, 4.0b8, 4.0, 5.0, 7.0a1.dev0, 7.0a1.dev1, 7.0a2.dev0, 7.0, 7.1, 7.2a1.dev0)
ERROR: No matching distribution found for RestrictedPython~=6.2

Seems to be caused by Python 3.12. Is there any workaround? This is the only thing preventing an install on 24.04 - so far …

Regards - Len

V15 doesn’t support python 3.12 yet, we’ll add it in next week’s release

Thanks ankush

Will wait with anticipation.

FYI - I’ve done a few changes to the install script referred to. Changed line 26 to:
SUPPORTED_VERSIONS=(“24.04” “23.10” “22.04” “20.04” “11” “10” “9” “8”)

And added these at about line 319:
sudo rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED
sudo rm -f /usr/lib/python3.12/EXTERNALLY-MANAGED

  • just before “sudo pip3 install frappe-bench”.

Works a treat with 23.10. Have also tried 15 with node v20.10.0 - and no obvious problems.

Just an update on this. I got ERPNext to install OK with the Beta release of 24.04.

python3-distutils is not yet in the noble repos as of the time of this posting. That causes line 224 in the quick install script to baulk: apt install git python3-dev python3-setuptools python3-venv python3-pip python3-distutils redis-server.

But manually installing everything else on that line before running the script (with the mods I mentioned) - then both Frappe & ERPNext appear to install just fine. I’m not a Python person & so I’ve no idea how important python3-distutils is - or what Canonical’s plans for it are.

Cheers - Len