I’m trying to deploy this app at streamlit. It works fine on localhost but encounters errors at the time of deployment. Usually when I upload file, it throws error.
FileNotFoundError: 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/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
exec(code, module.__dict__)
File "/app/shop-analysis/app.py", line 42, in <module>
df = get_data_from_excel()
File "/app/shop-analysis/app.py", line 24, in get_data_from_excel
df = pd.read_excel(
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 457, in read_excel
io = ExcelFile(io, storage_options=storage_options, engine=engine)
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1419, 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 525, in __init__
super().__init__(filepath_or_buffer, storage_options=storage_options)
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 508, in __init__
self.handles = get_handle(
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/common.py", line 795, in get_handle
handle = open(handle, ioargs.mode)
Thanks in advance