Skip to content

[BUG]: Python 3.13.3 circular import #1040

@petrasvestartas

Description

@petrasvestartas

Problem description

All python versions builds without problem but any c/c++ package from nanobind fails on python 3.13.3.

This happens on cibuildwheels when we try to distribute the package to pypi.

Reproducible example code

In this repository python 3.13 cibuildwheels cannot build and test even a simple file:
compas_shapeop

Installation and local cibuildwheels can be tested like that:

conda create -n compas_shapeop -c conda-forge python=3.9 compas -y
pip install -r requirements-dev.txt
cibuildwheel --output-dir wheelhouse .

Error:

ImportError while importing test module 'C:\brg\code\forks\compas_shapeop\tests\test_dynamicsolver.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\brg\code\forks\compas_shapeop\tests\test_dynamicsolver.py:3: in <module>
    from compas_shapeop.shapeop import Solver
..\venv-test\Lib\site-packages\compas_shapeop\shapeop.py:9: in <module>
    from ._shapeop import SolverWrapper
E   ModuleNotFoundError: No module named 'compas_shapeop._shapeop'

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