Deploy Error with pyenv

Unfortunately my repository is private as it contains sensitive data.
Please, if you could direct me to a possible solution with the private repository, I would appreciate it.

  1. Share the full text of the error message.

[     UTC     ] Logs for celsa-hive-ale-report.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[12:29:36] 🚀 Starting up repository: 'cesla_app', branch: 'main', main module: 'ale.py'
[12:29:36] 🐙 Cloning repository...
[12:29:47] 🐙 Cloning into '/mount/src/cesla_app'...
Warning: Permanently added the ED25519 host key for IP address '140.82.116.3' to the list of known hosts.
Updating files:  12% (5020/41369)
Updating files:  13% (5378/41369)
Updating files:  14% (5792/41369)
Updating files:  15% (6206/41369)
Updating files:  16% (6620/41369)
Updating files:  17% (7033/41369)
Updating files:  18% (7447/41369)
Updating files:  19% (7861/41369)
Updating files:  20% (8274/41369)
Updating files:  21% (8688/41369)
Updating files:  22% (9102/41369)
Updating files:  23% (9515/41369)
Updating files:  24% (9929/41369)
Updating files:  25% (10343/41369)
Updating files:  26% (10756/41369)
Updating files:  27% (11170/41369)
Updating files:  28% (11584/41369)
Updating files:  29% (11998/41369)
Updating files:  30% (12411/41369)
Updating files:  30% (12499/41369)
Updating files:  31% (12825/41369)
Updating files:  32% (13239/41369)
Updating files:  33% (13652/41369)
Updating files:  34% (14066/41369)
Updating files:  35% (14480/41369)
Updating files:  36% (14893/41369)
Updating files:  37% (15307/41369)
Updating files:  38% (15721/41369)
Updating files:  39% (16134/41369)
Updating files:  40% (16548/41369)
Updating files:  41% (16962/41369)
Updating files:  42% (17375/41369)
Updating files:  43% (17789/41369)
Updating files:  44% (18203/41369)
Updating files:  45% (18617/41369)
Updating files:  46% (19030/41369)
Updating files:  47% (19444/41369)
Updating files:  48% (19858/41369)
Updating files:  49% (20271/41369)
Updating files:  50% (20685/41369)
Updating files:  51% (21099/41369)
Updating files:  52% (21512/41369)
Updating files:  53% (21926/41369)
Updating files:  54% (22340/41369)
Updating files:  55% (22753/41369)
Updating files:  56% (23167/41369)
Updating files:  57% (23581/41369)
Updating files:  58% (23995/41369)
Updating files:  59% (24408/41369)
Updating files:  60% (24822/41369)
Updating files:  61% (25236/41369)
Updating files:  62% (25649/41369)
Updating files:  63% (26063/41369)
Updating files:  64% (26477/41369)
Updating files:  65% (26890/41369)
Updating files:  66% (27304/41369)
Updating files:  67% (27718/41369)
Updating files:  68% (28131/41369)
Updating files:  69% (28545/41369)
Updating files:  70% (28959/41369)
Updating files:  71% (29372/41369)
Updating files:  72% (29786/41369)
Updating files:  73% (30200/41369)
Updating files:  74% (30614/41369)
Updating files:  75% (31027/41369)
Updating files:  76% (31441/41369)
Updating files:  77% (31855/41369)
Updating files:  78% (32268/41369)
Updating files:  79% (32682/41369)
Updating files:  80% (33096/41369)
Updating files:  81% (33509/41369)
Updating files:  82% (33923/41369)
Updating files:  83% (34337/41369)
Updating files:  84% (34750/41369)
Updating files:  85% (35164/41369)
Updating files:  86% (35578/41369)
Updating files:  87% (35992/41369)
Updating files:  88% (36405/41369)
Updating files:  89% (36819/41369)
Updating files:  89% (36884/41369)
Updating files:  90% (37233/41369)
Updating files:  91% (37646/41369)
Updating files:  92% (38060/41369)
Updating files:  93% (38474/41369)
Updating files:  94% (38887/41369)
Updating files:  95% (39301/41369)
Updating files:  96% (39715/41369)
Updating files:  97% (40128/41369)
Updating files:  98% (40542/41369)
Updating files:  99% (40956/41369)
Updating files: 100% (41369/41369)
Updating files: 100% (41369/41369), done.

[12:29:48] 🐙 Cloned repository!
[12:29:48] 🐙 Pulling code changes from Github...
[12:29:54] 📦 Processing dependencies...

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.
Resolved 17 packages in 167ms
Downloaded 17 packages in 3.74s
Installed 17 packages in 388ms
 + certifi==2024.6.2
 + charset-normalizer[2024-06-18 12:29:59.167524] ==3.3.2
 + idna==3.7
 + matplotlib-inline==0.1.7
 + mysql-connector-python==8.4.0
 + numpy==1.26.4
 + packaging==24.1
 + pandas==2.2.2
 + plotly==5.22.0
 + python-dateutil==2.9.0.post0
 + pytz==2024.1
 + requests==2.32.1
 + six==1.16.0
 + tenacity==8.4.1
 + traitlets==5.14.3
 + tzdata==2024.1
 + [2024-06-18 12:29:59.167712] urllib3==2.2.2
warning: requests==2.32.1 is yanked (reason: "Yanked due to conflicts with CVE-2024-35195 mitigation ").
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[12:30:00] 🐍 Python dependencies were installed from /mount/src/cesla_app/requirements.txt using uv.
Check if streamlit is installed

──────────────────────────────── Installing Streamlit ──────────────────────────────────

Using uv pip install.
Resolved 41 packages in 294ms
Downloaded 28 packages in 1.00s
Installed 28 packages in 45ms
 + altair==5.3.0
 + attrs==23.2.0
 + blinker==1.8.2
 + cachetools==5.3.3
 + click==8.1.7
 + gitdb==4.0.11
 + gitpython==3.1.43
 + jinja2==3.1.4
 + jsonschema==4.22.0
 + jsonschema-specifications==2023.12.1
 + markdown-it-py==3.0.0
 + markupsafe==2.1.5
 + mdurl==0.1.2
 + pillow==10.3.0
 + protobuf==4.25.3
 + pyarrow==16.1.0
 + pydeck==0.9.1
 + pygments==2.18.0
 + referencing==0.35.1
 + rich==13.7.1
 + rpds-py==0.18.1
 + smmap==5.0.1
 + streamlit==1.35.0
 + toml==0.10.2
 + toolz==0.12.1
 + tornado==6.4.1
 + typing-extensions==4.12.2
 + watchdog==4.0.1

────────────────────────────────────────────────────────────────────────────────────────

[12:30:02] 📦 Processed dependencies!
Traceback (most recent call last):
  File "/home/adminuser/venv/bin/streamlit", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 234, in main_run
    _main_run(target, args, flag_options=kwargs)
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/cli.py", line 270, in _main_run
    bootstrap.run(file, is_hello, args, flag_options)
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 382, in run
    _install_pages_watcher(main_script_path)
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/web/bootstrap.py", line 358, in _install_pages_watcher
    watch_dir(
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/watcher/path_watcher.py", line 151, in watch_dir
    return _watch_path(
           ^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/watcher/path_watcher.py", line 126, in _watch_path
    watcher_class(
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/watcher/event_based_path_watcher.py", line 95, in __init__
    path_watcher.watch_path(
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/watcher/event_based_path_watcher.py", line 173, in watch_path
    folder_handler.watch = self._observer.schedule(
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 323, in schedule
    emitter.start()
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/utils/__init__.py", line 92, in start
    self.on_thread_start()
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify.py", line 125, in on_thread_start
    self._inotify = InotifyBuffer(path, self.watch.is_recursive, event_mask)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_buffer.py", line 37, in __init__
    self._inotify = Inotify(path, recursive, event_mask)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 174, in __init__
    self._add_dir_watch(path, recursive, event_mask)
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 387, in _add_dir_watch
    self._add_watch(full_path, mask)
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 401, in _add_watch
    Inotify._raise_error()
  File "/home/adminuser/venv/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 413, in _raise_error
    raise OSError(errno.ENOSPC, "inotify watch limit reached")
OSError: [Errno 28] inotify watch limit reached
[12:31:37] ❗️ Streamlit server consistently failed status checks
[12:31:37] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
[12:34:40] ❗️ We have encountered an unexpected problem. If this issue persists, please contact support

3. These are the versions that I used in venv to build the app.

Python = 3.12.3
Streamlit = 1.34.0

4. This is the requirements.txt

matplotlib-inline==0.1.7
mysql-connector-python==8.4.0
numpy==1.26.4
pandas==2.2.2
plotly==5.22.0
requests==2.32.1

Hi @Danilo1

There’s a thread that explores possible solution to this issue: