Skip to content

Failed to build due to pycairo error #420

@anderspetersson

Description

@anderspetersson

When bumping dependency to svglib==1.6.0 i'm getting this build error.

uv sync Resolved 74 packages in 168ms Built quizportal @ file:///Users/anders/Projects/quizme_project × Failed to build pycairo==1.28.0├─▶ The build backend returned an error ╰─▶ Call tomesonpy.build_wheel` failed (exit status: 1)

  [stdout]
  + meson setup /Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src
  /Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src/.mesonpy-zo14lsgq
  -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dwheel=true -Dtests=false
  --native-file=/Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src/.mesonpy-zo14lsgq/meson-python-native-file.ini
  The Meson build system
  Version: 1.9.1
  Source dir: /Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src
  Build dir:
  /Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src/.mesonpy-zo14lsgq
  Build type: native build
  Project name: pycairo
  Project version: 1.28.0

  ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'],
  ['icx']]
  The following exception(s) were encountered:
  Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
  Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
  Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
  Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"

  A full log can be found at
  /Users/anders/.cache/uv/sdists-v9/pypi/pycairo/1.28.0/qutvWnodCpGua3tLtEEhE/src/.mesonpy-zo14lsgq/meson-logs/meson-log.txt

  hint: This usually indicates a problem with the package or the build environment.

help: pycairo (v1.28.0) was included because quizportal (v1.0.0) depends on svglib (v1.6.0) which
depends on rlpycairo (v0.4.0) which depends on `pycairo``

Reverting back to svglib==1.5.1 solves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions