Repository navigation
Work with anyio 4.15 and plotly 7 - #1199
Merged
Merged
Conversation
anyio 4.15.0 (2026-09-02) no longer exposes its submodules as eager attributes of the anyio package: `anyio.from_thread` raises AttributeError unless the submodule was imported. solara used it in a class annotation in solara/server/starlette.py, evaluated at import time, so the server could not start on the new anyio (CI: unit-test-vue3 and the test-install jobs, which wait for a server that never comes up). Importing the submodules explicitly works on every anyio version.
maartenbreddels
force-pushed
the
fix/anyio-lazy-submodules
branch
from
September 3, 2026 13:10
be7c772 to
0170753
Compare
plotly 7.0.0 (2026-08-25) removed the *_mapbox functions, deprecated since 5.24 in favour of the *_map ones. solara.express wrapped them at import time, so `import solara.express` failed on plotly 7 and CI's unit-test-vue3 job errored at collection. Wrap whichever set this plotly provides: the *_mapbox ones when present, and the *_map ones (5.24+).
maartenbreddels
temporarily deployed
to
fix/anyio-lazy-submodules - solara-stable PR #1199
September 3, 2026 13:11 — with
Render
Destroyed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two dependency releases broke solara, and CI with it. Both fixes are needed for CI to pass, so they travel together (this supersedes #1200).
anyio 4.15.0 (2026-09-02)
anyio no longer exposes its submodules as eager attributes:
anyio.from_threadraisesAttributeErrorunless the submodule was imported.solara/server/starlette.pyuses it in a class annotation, evaluated at import time, so the server could not start. On CI:unit-test-vue3failing on the import and thetest-installjobs timing out waiting for a server on port 8765. Fix: importanyio.from_threadandanyio.to_threadexplicitly, which works on every anyio version.plotly 7.0.0 (2026-08-25)
plotly removed the
*_mapboxfunctions, deprecated since 5.24 in favour of the*_mapones.solara.expresswrapped them at import time, soimport solara.expressfailed on plotly 7, andunit-test-vue3errored at collection. Fix: wrap whichever set the installed plotly provides, the*_mapboxones when present and the*_mapones, which exist since 5.24. Verified: import andexpress_test.pyon plotly 7.0.0, import on plotly 6.0.1 with both sets wrapped.🤖 Generated with Claude Code