anufrievroman / waypaper

GUI wallpaper manager for Wayland and Xorg Linux systems
https://anufrievroman.gitbook.io/waypaper
GNU General Public License v3.0
277 stars 11 forks source link

Issue building pycairo on Fedora 38 with pipx #53

Open cpaczek opened 1 month ago

cpaczek commented 1 month ago

I am unable to install using pipx due to pycairo not being able to build. Took a look at the opensuse issue that seemed similar but this seems like it might be slightly different. Never used pipx so this could be an issue on my end too.

(base) [iamroot@fedora i3]$ sudo pipx install waypaper
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-06-04_09.57.02_pip_errors.log

pip seemed to fail to build package:
    pycairo

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    cairo/bufferproxy.c:32:10: fatal error: Python.h: No such file or directory
    error: command '/usr/bin/gcc' failed with exit code 1

Error installing waypaper.
(base) [iamroot@fedora i3]$ uname -a
Linux fedora 6.7.10-100.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 18 18:51:12 UTC 2024 x86_64 GNU/Linux
anufrievroman commented 1 month ago

I had a similar issue at some point and I installed pycairo-devel if I recall correctly, but that was on Arch. Maybe try to install something like that from your standard repository.

cpaczek commented 1 month ago

was able to install python3-cairo-devel but seems to have an error with "gobject-introspection"

Installed:
  python3-cairo-devel-1.25.1-3.fc40.x86_64                         python3-devel-3.12.3-2.fc40.x86_64

Complete!
[iamroot@fedora ~]$ sudo pipx install waypaper
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-06-05_07.02.21_pip_errors.log

pip seemed to fail to build package:
    PyGObject

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    ../meson.build:29:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.
    error: metadata-generation-failed

Error installing waypaper.
nikolaizombie1 commented 4 weeks ago

was able to install python3-cairo-devel but seems to have an error with "gobject-introspection"

Installed:
  python3-cairo-devel-1.25.1-3.fc40.x86_64                         python3-devel-3.12.3-2.fc40.x86_64

Complete!
[iamroot@fedora ~]$ sudo pipx install waypaper
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-06-05_07.02.21_pip_errors.log

pip seemed to fail to build package:
    PyGObject

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    ../meson.build:29:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.
    error: metadata-generation-failed

Error installing waypaper.

Please install gobject-introspection, python3-gobject and gobject-introspection-devel and try to build again.

anufrievroman commented 3 weeks ago

So, does this resolve it? Maybe we need to mention it in the documentation if so.

cpaczek commented 3 weeks ago

So, does this resolve it? Maybe we need to mention it in the documentation if so.

Haven't tried yet, I can try tomorrow morning and report back