Skip to content
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

doesn't install under Ubuntu 20.04 LTS Server #46

Open
wfjm opened this issue May 16, 2020 · 9 comments
Open

doesn't install under Ubuntu 20.04 LTS Server #46

wfjm opened this issue May 16, 2020 · 9 comments

Comments

@wfjm
Copy link

wfjm commented May 16, 2020

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 wfjm changed the title python3 port planned ? doesn't install under Ubuntu 20.04 LTS Server May 17, 2020
@wfjm
Copy link
Author

wfjm commented May 17, 2020

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.

@volschin
Copy link

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

@SuperSandro2000
Copy link

SuperSandro2000 commented May 18, 2020

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.

@volschin
Copy link

volschin commented May 19, 2020

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

@wfjm
Copy link
Author

wfjm commented May 24, 2020

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

@wfjm wfjm closed this as completed May 24, 2020
@Apollon77
Copy link

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

@fetzerch
Copy link
Owner

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.

@volschin
Copy link

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

@Leviathan09
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants