mehaksalil
mehaksalil
Here's a screenshot of the error on a fresh clone following the README instructions exactly. The relative import fails when running solara run app.py from inside the emperor_dilemma directory as...
When i fix those imports, (by using absolute imports) this was the next error i found: I ran the example, according to the README provided. Please let me know if...
ERROR: Traceback (most recent call last): File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 694, in lifespan async with self.lifespan_context(app) as maybe_state: File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 571, in __aenter__ await self._router.startup() File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 673, in...
second error faced: ERROR: Traceback (most recent call last): File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 694, in lifespan async with self.lifespan_context(app) as maybe_state: File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 571, in __aenter__ await self._router.startup() File "C:\Users\mehak\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py",...
For the second issue, SpaceRenderer.setup_agents() doesn't exist in the current Mesa release. This may be a version difference. Could you share which Mesa version you're running? On the latest release...
That makes sense, I was on Python 3.11 with Mesa 3.3.1 which doesn't have setup_agents. I'll upgrade to Python 3.12 and retest. I'll drop the SpaceRenderer fix from the PR...
The absolute imports are required for Solara to run the example locally (solara run app.py). Relative imports break Solara's module loading. Looking for guidance on how other examples handle this...