Can't install urbackup-server-web-api-wrapper python module on ubuntu 23.04

Hello everyone,
I’m using a python script and the urbackup API to export statistics on urbackup clients. I’m using it on my ubuntu 23.04 desktop PC (updated from 22.04). I can’t install urbackup-server-web-api-wrapper on it.
On 22.04, it works correctly

Can anyone help me?

thanks in advance

Simple way to copy file from repo and add it via import.

  1. Download from here: https://urbackup.atlassian.net/wiki/spaces/US/pages/11304962/Python3+web+api+wrapper?preview=/11304962/11337729/urbackup_api.py

  2. Save it as api.py into your project folder for example /opt/wrapper.

  3. Code will be like in app.py, replace IP and user/pass:

import api
server = api.urbackup_server("http://127.0.0.1:55414/x", "admin", "foo")
print(server)
  1. I also recommend to use venv to execute scripts between activate and deactivate:
cd C:\wrapper\
python -m venv .venv
call Scripts/activate.bat
python app.py
call Scripts/deactivate.bat

or

cd /opt/wrapper
python3 -m venv .venv
source ./.venv/bin/activate
python3 app.py
deactivate

Or Install via pip in general way (just checked it works):

cd /opt/wrapper
python3 -m venv .venv
source ./.venv/bin/activate
echo "urbackup-server-web-api-wrapper==0.11" > require.txt
pip3 install -r require.txt
deactivate

Assume you understand 1st to create wrapper directory and update python3 and pip3.

Thanks a lot, you helped me.

Bye