-
Notifications
You must be signed in to change notification settings - Fork 43
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
Unable to install benji to Python 3.11 venv in Proxmox 8 (Debian 12 (bookworm)) #157
Comments
I have managed to get Benji to work on Proxmox V8 by installing Python 3.9, creating the a Virtual Environment and installing Benji using pip. I also had to copy the python3-rados and python3-rbd modules from proxmox 7 to the Virtual Environment as the ones provided by Proxmox v8 only supports Python 3.11. Now benji is working as before. |
The problem is the ruamel.yaml verion. In the setup.py the version check was changed to 'ruamel.yaml>=0.17,<0.18' which installs ruamel.yaml-0.16.13. Unfortunately the pypi version is 0.17 is behind and tries to use an older ruamel.yaml version which does not work with python 3.11. For now I have set up an python 3.11 venv and pulled the source and use a helper "benji" script to load the code from my checkout path and installed the dependencies in the venv. pip3 install 'PrettyTable>=0.7.2,<1' |
For the sake of completeness what I did: a) check out benji to shared dir on cephfs
b) Replaced /usr/local/bin/benji with:
c) d) Created modified benji-entrypoint-script
e) make python-rados/rdb modules available to venv:
|
@elemental-lf Could you please update the official benji pypi package (https://pypi.org/project/benji/). Proxmox 8 upgrades python to 3.11, but the current benji pypi version 0.17.0, uses an older ryamel dependency which does not compilies on python 3.11. The problem is alredy fixed in the benji master branch, but it currently can't any longer be installed or updated trough pip. |
Hi,
The following thread references Python 3.11 being supported, am I missing something on a Debian 12 based system or should a new install work?
#153
Error:
The text was updated successfully, but these errors were encountered: