Deployment is not working

Hi!

My app shows the error

Oh no.

Error running app. If this keeps happening, please contact support.

Locally it is ok, but when deployed fails.

Github

web

Could you please help.

Thank you,

Mike

Streamlit 1.33.0
Python 3.11.8

What is the error message in the web console?

Where can I find web console (I am new to streamlit)?

I see only “Oh, no!” error typing https://sovdata.streamlit.app/
No sidebar appears or something else

Thank you!

Great, thank you, Franky1!

It actually helped, some packages versions were incorrect in requirements.txt, but it is still not working )) Now “You app is in the oven” for several hours…

end of log:
Installing collected packages: pyxlsb, pytz, zipp, xlsxwriter, watchdog, urllib3, tzdata, typing-extensions, tornado, toolz, toml, tenacity, smmap, six, rpds-py, pyparsing, pygments, psycopg2-binary, protobuf, pillow, packaging, numpy, mdurl, MarkupSafe, kiwisolver, idna, fonttools, cycler, click, charset-normalizer, certifi, cachetools, blinker, attrs, requests, referencing, python-dateutil, pyarrow, markdown-it-py, jinja2, importlib-resources, gitdb, contourpy, rich, pydeck, pandas, matplotlib, jsonschema-specifications, gitpython, jsonschema, altair, streamlit, streamlit-vis-timeline
Successfully installed MarkupSafe-2.1.5 altair-5.3.0 attrs-23.2.0 blinker-1.7.0 cachetools-5.3.3 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 contourpy-1.2.1 cycler-0.12.1 fonttools-4.51.0 gitdb-4.0.11 gitpython-3.1.43 idna-3.7 importlib-resources-6.4.0 jinja2-3.1.3 jsonschema-4.21.1 jsonschema-specifications-2023.12.1 kiwisolver-1.4.5 markdown-it-py-3.0.0 matplotlib-3.8.4 mdurl-0.1.2 numpy-1.26.4 packaging-24.0 pandas-2.2.2 pillow-10.3.0 protobuf-4.25.3 psycopg2-binary-2.9.9 pyarrow-15.0.2 pydeck-0.8.1b0 pygments-2.17.2 pyparsing-3.1.2 python-dateutil-2.9.0.post0 pytz-2024.1 pyxlsb-1.0.10 referencing-0.34.0 requests-2.31.0 rich-13.7.1 rpds-py-0.18.0 six-1.16.0 smmap-5.0.1 streamlit-1.33.0 streamlit-vis-timeline-0.3.0 tenacity-8.2.3 toml-0.10.2 toolz-0.12.1 tornado-6.4 typing-extensions-4.11.0 tzdata-2024.1 urllib3-2.2.1 watchdog-4.0.0 xlsxwriter-3.2.0 zipp-3.18.1
Checking if Streamlit is installed
Found Streamlit version 1.33.0 in the environment

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

[13:58:45] :snake: Python dependencies were installed from /mount/src/sovdb_web/requirements.txt using pip.
[13:58:45] :package: Processed dependencies!

[13:58:49] :arrows_counterclockwise: Updated app!

It finally works (after night of cooking) !)

BUT

streamlit-timeline component fails to start when deployed, but works OK locally

PermissionError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
    exec(code, module.__dict__)File "/mount/src/sovdb_web/pages/6_events.py", line 75, in <module>
    timeline = st_timeline(items, groups=[], options={}, height="300px")File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit_timeline/__init__.py", line 126, in st_timeline
    _import_styles(style, True)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 168, in wrapper
    return cached_func(*args, **kwargs)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 197, in __call__
    return self._get_or_create_cached_value(args, kwargs)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 224, in _get_or_create_cached_value
    return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 280, in _handle_cache_miss
    computed_value = self._info.func(*func_args, **func_kwargs)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit_timeline/__init__.py", line 71, in _import_styles
    shutil.copyfile(html_backup, html_path)File "/usr/local/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst: