Skip to content

python-3.12 leading to error when building wheel #198

@marcelmbn

Description

@marcelmbn

Relevant part of the python-3.12-related error (from ubuntu-latest test)

    tblite| Dependency mstore found: YES 0.3.0 (cached)
    tblite| Program tester.py found: YES (/opt/python/cp312-cp312/bin/python /project/subprojects/tblite/test/validation/tester.py)
    tblite| Build targets in project: 29
    tblite| Subproject tblite finished.
  
    Dependency tblite from subproject subprojects/tblite found: YES 0.3.0
    Program python3 (cffi) found: YES (/opt/python/cp312-cp312/bin/python) modules: cffi
    Run-time dependency python found: YES 3.12
    Configuring _libtblite.h with command
    Configuring _libtblite.c with command
  
    ../tblite/meson.build:50:19: ERROR: Command `/opt/python/cp312-cp312/bin/python /project/tblite/../ffi-builder.py /project/.mesonpy-noxemis4/tblite/_libtblite.h _libtblite` failed with status 1.
  
    A full log can be found at /project/.mesonpy-noxemis4/meson-logs/meson-log.txt
    error: subprocess-exited-with-error
    
    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    full command: /opt/python/cp312-cp312/bin/python /opt/python/cp312-cp312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp06f_mlrx
    cwd: /project
    Preparing metadata (pyproject.toml): finished with status 'error'
  error: metadata-generation-failed
  
  × Encountered error while generating package metadata.
  ╰─> See above for output.
  
  note: This is an issue with the package mentioned above, not pip.
  hint: See above for details.
  Error: Command ['python', '-m', 'pip', 'wheel', PurePosixPath('/project'), '--wheel-dir=/tmp/cibuildwheel/built_wheel', '--no-deps', '-v'] failed with code 1.

Originally posted by @marcelmbn in #197 (comment)

How to reproduce?

Create a PR and add the python-312 entry in the CI matrix. Also, one could check if this issue is still present in a local tblite build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildRelated to the build system or other platform/architecture specific issuespythonRelated to the Python API or integration with Python

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions