anufrievroman / waypaper

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

Issue building pycairo on Fedora 38 with pipx #53

Closed cpaczek closed 4 days ago

cpaczek commented 5 months 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 5 months 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 5 months 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 5 months 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 5 months ago

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

cpaczek commented 5 months 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

mylinuxforwork commented 4 months ago

I have the same issue. Any updates on installation instruction for Fedora?

micahledet commented 3 months ago

I was having the same issue with Fedora 40. I installed the three packages mentioned gobject-introspection, python3-gobject and gobject-introspection-devel but it still wasn't working.

I installed cairo-gobject-devel and finally was able to get waypaper installed with pipx after that.

anufrievroman commented 2 months ago

For fedora users, Waypaper is available in an external repository owned by Solopasha. So, you can add this repository as

sudo dnf copr enable solopasha/hyprland

and install as

sudo dnf install wayapaper

mylinuxforwork commented 2 months ago

Thanks for your feedback.

anufrievroman commented 4 days ago

Okay, it's been a while since someone struggled with Fedora, so I'll close this issue.