Hey professor , could you shed some light on the requirements.txt documents , that is needed to be uploaded.also . I recently created a little app that uses ydata-profiling , but it throughs an error "ModuleNotFound:
Thanks sir.. if the streamlit app has references to api key..how is that to be managed? Also screens look so different now.. I just uploaded the py but it errored with module not found.
Hi, the module not found error suggests that dependency libraries are missing. Can you make sure to create requirements.txt file that contains a list of dependent Python libraries.
Good Afternoon Professor, thank you for this example. Can you please in the future make the same example but adding information from an excel file? Will be very helpful for me, i have tried this for a long time Thank you!
Very useful, but what if you made your app on windows? Ie, the requirements.txt has alot of libraries that are not compatible with streamlit linux enviroment.
Igot this error Traceback (most recent call last): File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "/app/spx/app.py", line 7, in excel_file = pd.ExcelFile("SPXDATA.xlsx") File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1513, in __init__ self._reader = self._engines[engine](self._io, storage_options=storage_options) File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/_openpyxl.py", line 548, in __init__ import_optional_dependency("openpyxl") File "/home/appuser/venv/lib/python3.9/site-packages/pandas/compat/_optional.py", line 145, in import_optional_dependency raise ImportError(msg) ImportError: Missing optional dependency 'openpyxl'. Use pip or conda to install openpyxl.