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

Issue building pycairo on Fedora 38 with pipx #53

Open
cpaczek opened this issue Jun 4, 2024 · 9 comments
Open

Issue building pycairo on Fedora 38 with pipx #53

cpaczek opened this issue Jun 4, 2024 · 9 comments
Labels
installation Issues related to the installation

Comments

@cpaczek
Copy link

cpaczek commented Jun 4, 2024

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
Copy link
Owner

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
Copy link
Author

cpaczek commented Jun 5, 2024

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
Copy link
Contributor

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
Copy link
Owner

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

@anufrievroman anufrievroman added the installation Issues related to the installation label Jun 13, 2024
@cpaczek
Copy link
Author

cpaczek commented Jun 13, 2024

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
Copy link

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

@micahledet
Copy link

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
Copy link
Owner

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
Copy link

Thanks for your feedback.

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

No branches or pull requests

5 participants