fritzcollectd
fritzcollectd copied to clipboard
doesn't install under Ubuntu 20.04 LTS Server
Installs and works fine under Ubuntu 18.04 Server, but fails to install under Ubuntu 20.04 LTS server with a long list of errors for me. Is that a known issue ?
Here, sorry for the delay, a clean reproducer in a docker
environment. Try the commands
apt-get update
apt-get install python3-pip
apt-get install libxml2-dev libxslt1-dev
pip3 install fritzcollectd
in a minimal Ubuntu container, either 18.04 LTS, where it works fine
docker run -it ubuntu:bionic bash
Successfully built fritzcollectd
Installing collected packages: urllib3, certifi, chardet,
requests, lxml, fritzconnection, pbr, fritzcollectd
Successfully installed certifi-2020.4.5.1 chardet-3.0.4 fritzcollectd-0.7.0
fritzconnection-0.8.4 lxml-4.3.4 pbr-5.4.5 requests-2.22.0 urllib3-1.25.9
or 20.04 LTS where it fails
docker run -it ubuntu:focal bash
ERROR: Failed building wheel for lxml
There is a boatload or errors, but the line
src/lxml/etree.c:411:11: error: too many arguments to function ‘PyCode_New’
is prominent. Whether that's the only or the leading cause I don't know.
Same Problem with debian bullseye. But it seems specific to Version 0.7.0. Going back to fritzcollectd==0.6.3 ist installs fine.
This is a bug in lxml version 4.3.4 which fritzconnection required before 1.0.0. So to fix this we either need fritzconnection 0.8.5 with a newer lxml requirement or an update to fritzcollectd to use fritzconnection >=1.0.0.
If you are running docker, use the docker file from the docker branch here. Add an :3.10 label to alpine. Works fine for me. So you can further use python2 until the problem is solved here.
Ready to run for amd64 arch you can use this docker pull volschin/fritzcollectd:latest
Thanks @volschin ! But on the long run python2 elimination in Ub 20.04 may be the smallest problem, see issue #48.
why you closed with refernce to incluxdb? Is only influxdb 2.0 existing in Ubuntu Focal? really? Would be new to me
fritzcollectd needs to be adapted to Python 3 (and fritzconnection > 1.0.0) - which I wanted to do long ago, but I'm still stuck with a collectd version that is compiled against Python 2.
No ETA yet, as I don't have any free time at the moment. If anyone wants to give it a try, PRs are very welcomed.
Python 3 doesn't seem a larger problem. But the changes introduced with fritzconnection 1.0.0
Are there any news on this? Would really like to use fritzcollectd and the grafana dashboard