Skip to content

Multiple errors on app startup on streamlit cloud #43

@Json-To-String

Description

@Json-To-String

Trying to get the app to run on streamlit cloud and following the traceback I think there are two main errors:

Truncated to those spots for brevity

File "/mount/src/shelfside/main.py", line 30, in <module>
    pg.run()
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/navigation/page.py", line 490, in run
    exec(code, module.__dict__)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mount/src/shelfside/personality-quiz/00_start_page.py", line 4, in <module>
    from streamlit_extras.switch_page_button import switch_page
    folder_handler.watch = self._observer.schedule(

                           ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 312, in schedule

    emitter.start()

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/utils/__init__.py", line 75, in start

    self.on_thread_start()

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify.py", line 119, in on_thread_start

    self._inotify = InotifyBuffer(path, recursive=self.watch.is_recursive, event_mask=event_mask)

                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_buffer.py", line 30, in __init__

    self._inotify = Inotify(path, recursive=recursive, event_mask=event_mask)

                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 185, in __init__

    self._add_dir_watch(path, event_mask, recursive=recursive)

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 404, in _add_dir_watch

    self._add_watch(path, mask)

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 424, in _add_watch

    Inotify._raise_error()

  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 435, in _raise_error

    raise OSError(errno.ENOSPC, "inotify watch limit reached")

OSError: [Errno 28] inotify watch limit reached

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions