Skip to content

GeoSpace visualization incompatible with Mesa ≥ 3.3 (SolaraViz API change) #295

@wang-boyu

Description

@wang-boyu

Describe the bug

GeoSpace visualization in Mesa-Geo currently breaks when used with Mesa 3.3 / 3.4, due to upstream changes in Mesa’s SolaraViz visualization API.

Error when using make_geospace_component with SolaraViz:

Traceback (most recent call last):
  File "/Users/boyu/GitHubProjects/mesa-examples/venv/lib/python3.14/site-packages/reacton/core.py", line 1702, in _render
    root_element = el.component.f(*el.args, **el.kwargs)
  File "/Users/boyu/GitHubProjects/mesa-examples/venv/lib/python3.14/site-packages/mesa/mesa_logging.py", line 132, in wrapper
    res = func(*args, **kwargs)
  File "/Users/boyu/GitHubProjects/mesa-examples/venv/lib/python3.14/site-packages/mesa/visualization/solara_viz.py", line 151, in SolaraViz
    display_components.insert(0, (create_space_component(renderer.value), 0))
                                                         ^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'value'

Current workaround

Pin Mesa to <3.3 to keep GeoSpace visualization working: #294

Goal

Update Mesa-Geo’s GeoSpace visualization integration to work with Mesa ≥ 3.3 (latest SolaraViz), so the dependency pin can be removed.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions