widgetti / widgetti/solara

Solara fails to import with Python 3.13 on Windows

Open
#797 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.2k
Forks
202
Avg merge
4h 36m
Merged PRs (30d)
3

Description

When we were updating our CI setup (https://github.com/projectmesa/mesa/pull/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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CI setup discussed in pull request 2325 and reproduce the Python 3.13 Windows installation. Then run tests/test_cell_space.py, tests/test_devs.py, and tests/test_solara_viz.py to investigate why Solara lacks component and reactive during collection; done means these tests collect and run successfully on Python 3.13 Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ci-cd, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.