octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
249 stars 29 forks source link

Running example script fails #215

Closed milanmitrovic closed 1 year ago

milanmitrovic commented 1 year ago

I create a script with solara create button and try to run it with solara run sol.py.

The second command fails with

  File "/opt/homebrew/lib/python3.11/site-packages/solara/server/starlette.py", line 249, in root
    content = server.read_root(request_path, root_path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/solara/server/server.py", line 238, in read_root
    nbextensions = get_nbextensions()
                   ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/solara/cache.py", line 95, in __call__
    value = self.function(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/solara/server/server.py", line 318, in get_nbextensions
    load_extensions = jupytertools.get_config(paths, "notebook")["load_extensions"]
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'load_extensions'

It seems that the get_config call returns an empty dict because we are not inside a jupyter notebook.

Any help with resolving this is appreciated.

milanmitrovic commented 1 year ago

Submitted this to the wrong repo. Sorry.