App fails to start with 'NoneType' object has no attribute 'search'
#20
Labels
bug
Something isn't working
'NoneType' object has no attribute 'search'
#20
Running
solara run vegetation/app.py
fails for me! 😭Traceback snippet:
Full log
$ pixi run vegetation ✨ Pixi task (vegetation): solara run vegetation/app.py Solara server is starting at http://localhost:8765 /home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/IPython/core/interactiveshell.py:937: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. warn( No local cache found, downloading elevation from STAC Collecting STAC Items ERROR: Traceback (most recent call last): File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/starlette/routing.py", line 693, in lifespan async with self.lifespan_context(app) as maybe_state: File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/starlette/routing.py", line 569, in __aenter__ await self._router.startup() File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/starlette/routing.py", line 672, in startup handler() File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/server/starlette.py", line 573, in on_startup appmod.ensure_apps_initialized() File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/util.py", line 345, in wrapper return_value = f() ^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/server/app.py", line 524, in ensure_apps_initialized app.init() File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/server/app.py", line 103, in init app = self._execute() ^^^^^^^^^^^^^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/server/app.py", line 150, in _execute routes = [solara.autorouting._generate_route_path(self.path, first=True, initial_namespace=initial_namespace)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/autorouting.py", line 525, in _generate_route_path module = source_to_module(subpath, initial_namespace=initial_namespace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/.pixi/envs/default/lib/python3.11/site-packages/solara/autorouting.py", line 39, in source_to_module exec(ast, mod.__dict__) File "/home/robatt/Projects/dse/mesa_abm_poc/vegetation/app.py", line 84, in model = Vegetation(bounds=TST_JOTR_BOUNDS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/vegetation/patch/model.py", line 228, in __init__ self.space.get_elevation() File "/home/robatt/Projects/dse/mesa_abm_poc/vegetation/patch/space.py", line 111, in get_elevation elevation = self.get_elevation_from_stac() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/robatt/Projects/dse/mesa_abm_poc/vegetation/patch/space.py", line 168, in get_elevation_from_stac items_generator = self.pystac_client.search( ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'search'ERROR: Application startup failed. Exiting.
The text was updated successfully, but these errors were encountered: