Skip to content

Solara fails to import with Python 3.13 on Windows #797

@EwoutH

Description

@EwoutH

When we were updating our CI setup (projectmesa/mesa#2325) we noticed that the Windows build threw some errors:

ERROR tests/test_cell_space.py - AttributeError: module 'solara' has no attribute 'component'.
ERROR tests/test_devs.py - AttributeError: module 'solara' has no attribute 'component'.
ERROR tests/test_solara_viz.py - AttributeError: module 'solara' has no attribute 'reactive'.
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!

Both Python 3.13 on macOS and Ubuntu and Python 3.12 on Windows run fine, it's only Python 3.13 on Windows that gives the errors.

Since the pip install step takes a lot longer, it could be that either Solara or a dependency of Solara is being build manually on Python 3.13 Windows instead of using a wheel, which could be causing the problems.

The Python 3.13.0 stable release is this Tuesday (2024-10-01), it might be nice if everything runs smoothly on stable release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions