mesa / mesa/mesa-examples

Fix emperor_dilemma: relative imports and outdated SpaceRenderer API

Open
#337 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
252
Forks
279
Avg merge
8d 9h
Merged PRs (30d)
2

Description

The emperor_dilemma example is currently broken and cannot be run due to two issues:

1. Relative imports in app.py, model.py, and agents.py are incompatible with
how Solara loads example modules.

2. SpaceRenderer.setup_agents() no longer exists in the current Mesa API.

Both issues prevent the example from running at all.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting app.py, model.py, and agents.py to understand how Solara loads the example modules and where SpaceRenderer.setup_agents() is called. Update the incompatible imports and current Mesa API usage, then verify that the emperor_dilemma example runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.