Hello fails when trying on centos7

Hi all ,
Iโ€™m new here ,and also to python * streamlit . So, I hope I posting it correctly. I was trying to run streamlit on centos7 with and without poetry both fails with the below error messages . I was trying to run my my own simple app and also hello. All failed the same way (with the same errors). Can someone please advise how to solve this ? I will settle for run command to not open a browser ,but only spin up the server ,so I can connect to it manually

  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/bin/streamlit", line 8, in <module>
    sys.exit(main())
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/web/cli.py", line 185, in main_hello
    _main_run(filename, flag_options=kwargs)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/web/cli.py", line 269, in _main_run
    bootstrap.run(file, command_line, args, flag_options)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/web/bootstrap.py", line 411, in run
    _install_pages_watcher(main_script_path)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/web/bootstrap.py", line 386, in _install_pages_watcher
    watch_dir(
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/watcher/path_watcher.py", line 153, in watch_dir
    return _watch_path(
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/watcher/path_watcher.py", line 128, in _watch_path
    watcher_class(
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/watcher/event_based_path_watcher.py", line 92, in __init__
    path_watcher.watch_path(
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/streamlit/watcher/event_based_path_watcher.py", line 170, in watch_path
    folder_handler.watch = self._observer.schedule(
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/api.py", line 301, in schedule
    emitter.start()
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/utils/__init__.py", line 92, in start
    self.on_thread_start()
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify.py", line 119, in on_thread_start
    self._inotify = InotifyBuffer(path, self.watch.is_recursive)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify_buffer.py", line 37, in __init__
    self._inotify = Inotify(path, recursive)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify_c.py", line 179, in __init__
    self._add_dir_watch(path, recursive, event_mask)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify_c.py", line 395, in _add_dir_watch
    self._add_watch(path, mask)
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify_c.py", line 416, in _add_watch
    Inotify._raise_error()
  File "/home/eyal/.cache/pypoetry/virtualenvs/sweep-analysis-tool-056zdFmF-py3.10/lib/python3.10/site-packages/watchdog/observers/inotify_c.py", line 428, in _raise_error
    raise OSError(errno.ENOSPC, "inotify watch`Preformatted text`

I donโ€™t really know how to interprete this

Hi @aicr

Thereโ€™s a similar post on StackOverflow with solutions here

that essentially suggests to add the following behind streamlit run app.py command when launching the app:

--server.fileWatcherType none

Hope this helps!

1 Like

Yess!!! it helps . Many thanks @dataprofessor

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.