Fix emperor_dilemma: relative imports and outdated SpaceRenderer API
Open
- 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
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