Skip to content

Remove mesa.space dependency from mesa-geo #306

@falloficarus22

Description

@falloficarus22

Describe the bug
mesa-geo currently imports symbols from mesa.space, which is removed in mesa/mesa#3337

Expected behavior
mesa-geo should import successfully on current Mesa and use supported APIs (mesa.discrete_space / mesa.experimental.continuous_space where relevant), without depending on mesa.space.

To Reproduce

  1. Use latest Mesa (3.5.0.dev0)
  2. In mesa-geo run:
python -c "import mesa_geo"
  1. Observe failure:
ModuleNotFoundError: No module named 'mesa.space'

Direct failing import location:
raster_layers.py (line 19) (from mesa.space import Coordinate, accept_tuple_argument)

Additional context

  • This is a hard import-time break, not a deprecation warning.
  • A full migration should remove all mesa.space imports/usages from mesa-geo and replace type aliases/decorators with equivalents that do not require legacy Mesa space internals.

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