Unsuccessful install / upgrade on Trixie
This is following up on previous comments I made on a different issue, but now that Trixie is officially out, this won't work (on an existing install or a fresh Trixie image).
If you try to use the install script it detects python 3.13 and installs properly, but when it gets to the stage where it checks to see if kvmd -m runs properly, you get an error "AttributeError: module 'gpiod' has no attribute 'Line'. Did you mean: 'line'?" From searches around the internet, pretty sure this is attributed to the updated libgpiod3 (and the previous version is not installable).
If you just say yes and finish the install anyway, then try to use the update-rpikvm script to update to a version of PiKVM compatible with the latest libgpiod, the update script errors out due to python 3.13 not being supported in the update script:
PYTHONVER=$( /usr/bin/python3 -V | cut -d' ' -f2 | cut -d'.' -f1,2 ) case $PYTHONVER in "3.7"|"3.9") PYTHON=3.9; KVMDVER=3.47 ;; #"3.10") PYTHON=$PYTHONVER ;; "3.10"|"3.11") PYTHON=3.11 ;; # kvmd 3.217 and higher now uses python 3.11 path *) echo "Unsupported python version $PYTHONVER. Exiting"; exit 1;; esac
janus is also a package that is not present in Trixie repos, so that seems to be causing some other issues as well.
I've tried a variety of things to make it work anyway (adding in a case for 3.13, etc.) but this is beyond my understanding of how PiKVM works so I haven't been successful. There seems to be some stuff in the update script hardcoded to a python3.12 directory, other stuff using a python3.11 directory, and other stuff using a variable version based on what you're running.
I'd stick with Bookworm, except for the fact that this Pi is also running Proxmox Backup Server 4 which requires Trixie.
I have installed kvmd on Debian 13 in Docker, you can take some hints from the Dockerfile: https://github.com/ualex73/docker-kvmd/
I had to compile certain stuff, which does not work on Debian 13/Python 3.13 anymore.