fritzcollectd icon indicating copy to clipboard operation
fritzcollectd copied to clipboard

doesn't install under Ubuntu 20.04 LTS Server

Open wfjm opened this issue 4 years ago • 9 comments

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 ?

wfjm avatar May 16 '20 20:05 wfjm

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.

wfjm avatar May 17 '20 16:05 wfjm

Same Problem with debian bullseye. But it seems specific to Version 0.7.0. Going back to fritzcollectd==0.6.3 ist installs fine.

volschin avatar May 17 '20 22:05 volschin

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.

SuperSandro2000 avatar May 18 '20 00:05 SuperSandro2000

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

volschin avatar May 19 '20 09:05 volschin

Thanks @volschin ! But on the long run python2 elimination in Ub 20.04 may be the smallest problem, see issue #48.

wfjm avatar May 24 '20 17:05 wfjm

why you closed with refernce to incluxdb? Is only influxdb 2.0 existing in Ubuntu Focal? really? Would be new to me

Apollon77 avatar May 24 '20 18:05 Apollon77

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.

fetzerch avatar May 24 '20 18:05 fetzerch

Python 3 doesn't seem a larger problem. But the changes introduced with fritzconnection 1.0.0

volschin avatar May 24 '20 20:05 volschin

Are there any news on this? Would really like to use fritzcollectd and the grafana dashboard

Leviathan09 avatar Aug 01 '20 16:08 Leviathan09