ERROR: Failed building wheel for pycairo

Hello, I’m trying to put my Python project with streamlit on strealit sharing, but I get this error all the time. I already have the requirements.txt, Procfile and setup.sh files configured. I’m on Windows 11 operating system.

I’ve tried many times and I couldn’t, I’d like to know if anyone has experienced this:

  Building wheel for pycairo (pyproject.toml): started

  Building wheel for pycairo (pyproject.toml): finished with status 'error'

  error: subprocess-exited-with-error

  

  × Building wheel for pycairo (pyproject.toml) did not run successfully.

  │ exit code: 1

  ╰─> [12 lines of output]

      running bdist_wheel

      running build

      running build_py

      creating build

      creating build/lib.linux-x86_64-cpython-39

      creating build/lib.linux-x86_64-cpython-39/cairo

      copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-39/cairo

      copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-39/cairo

      copying cairo/py.typed -> build/lib.linux-x86_64-cpython-39/cairo

      running build_ext

      'pkg-config' not found.

      Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']

      [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

  ERROR: Failed building wheel for pycairo

Successfully built cairocffi cufflinks docopt fpdf jax pangocairocffi pangocffi progressbar PyDispatcher svglib validators xhtml2pdf

Failed to build pycairo

ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects

Hey @DoctorNerds,

Can you please share the link to your GitHub repo so we can try to reproduce this issue?

1 Like

https://pycairo.readthedocs.io/en/latest/getting_started.html

packages.txt

libcairo2-dev
pkg-config
python3-dev
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.