You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/songshgeo/Documents/VSCode/mesa_geo/examples/rainfall/run.py", line 1, in <module>
from rainfall.server import server
File "/Users/songshgeo/Documents/VSCode/mesa_geo/examples/rainfall/rainfall/server.py", line 46, in <module>
server = mesa.visualization.ModularServer(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/songshgeo/Documents/VSCode/mesa_geo/.venv/lib/python3.11/site-packages/mesa_viz_tornado/ModularVisualization.py", line 354, in __init__
self.reset_model()
File "/Users/songshgeo/Documents/VSCode/mesa_geo/.venv/lib/python3.11/site-packages/mesa_viz_tornado/ModularVisualization.py", line 381, in reset_model
self.model = self.model_cls(**model_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/songshgeo/Documents/VSCode/mesa_geo/examples/rainfall/rainfall/model.py", line 77, in __init__
self.space.set_elevation_layer("data/elevation.asc.gz", crs="epsg:4326")
File "/Users/songshgeo/Documents/VSCode/mesa_geo/examples/rainfall/rainfall/space.py", line 37, in set_elevation_layer
with gzip.open(elevation_gzip_file, "rb") as elevation_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/gzip.py", line 58, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'data/elevation.asc.gz'
Expected behavior
Open website and run server.
To Reproduce
It occurs when I run the example in a new virtual env:
pip install mesa-geo
mesa runserver rainfall
Additional context
It works when I switch to 0.5.0 version.
The text was updated successfully, but these errors were encountered:
Describe the bug
mesa runserver
doesn't work in examplerainfall
andpopulation
.dependencies' version:
mesa_geo = 0.6.0, mesa = "^2.1.2"
rasterio = "1.3.8.post2"
Expected behavior
Open website and run server.
To Reproduce
It occurs when I run the example in a new virtual env:
Additional context
It works when I switch to
0.5.0
version.The text was updated successfully, but these errors were encountered: