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

pip package has an (inherited ?) dependency on graphic libs #39

Closed
barbudor opened this issue Nov 28, 2021 · 3 comments · Fixed by #169
Closed

pip package has an (inherited ?) dependency on graphic libs #39

barbudor opened this issue Nov 28, 2021 · 3 comments · Fixed by #169

Comments

@barbudor
Copy link

barbudor commented Nov 28, 2021

Hi

When pip-installing systemctl-mqtt on a system without graphics it fails as pycairo fails building.
Same with PyGObjects

Why is there a dependency on graphical libraries ?
Could this be removed ?

Thanks

@barbudor barbudor changed the title pip package has an (inherited ?) dependency on pycairo pip package has an (inherited ?) dependency on graphic libs Nov 28, 2021
@fphammerle
Copy link
Owner

Hi

$ git rev-parse HEAD
92f02a51a29b306bd56e53cc0e109e6af735fb0b
$ pipenv graph
pkg-resources==0.0.0
systemctl-mqtt==0.5.1.dev33+g92f02a5
  - dbus-python [required: <2, installed: 1.2.16]
  - paho-mqtt [required: <2, installed: 1.5.1]
  - PyGObject [required: <4, installed: 3.38.0]
    - pycairo [required: >=1.11.1, installed: 1.19.1]

Dependency on pycairo is inherited via PyGObject.

PyGObject is currently only providing the "main loop": https://github.com/fphammerle/systemctl-mqtt/blob/master/systemctl_mqtt/__init__.py#L288
https://github.com/fphammerle/systemctl-mqtt/blob/master/systemctl_mqtt/__init__.py#L318

Maybe dbus-python supports a different setup without PyGObject.

Do you maybe have a suggestion?

@barbudor
Copy link
Author

Many thanks for your fast response.
I will investigate, and if I find a suggestion I will revert to you.

Thanks

@Rothammel
Copy link

Rothammel commented May 14, 2023

I used sudo apt-get install libcairo2-dev and it works

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

Successfully merging a pull request may close this issue.

3 participants