Describe the bug
The hex_ant example cannot be run due to a relative import error in app.py.
To Reproduce
- cd examples/hex_ant
- python app.py
Error
Traceback (most recent call last):
File "app.py", line 6, in
from .agent import AntState
ImportError: attempted relative import with no known parent package
Expected behavior
The example should run without errors.
Environment
- Mesa version: 3.5.0
- Python version: 3.x
- OS: Windows
Possible fix
Replace relative imports with absolute imports, similar to how other working examples in the repo are structured.