Deployment ModuleNotFoundError using

I have been trying to deploy my app, but I get the error message below. The console log does not show further details and I made sure plotly-express is installed to my environment.


Full Description:

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 534, in _run_script
    exec(code, module.__dict__)
File "/app/pythonproject/", line 3, in <module>
    import as px

Link: GitHub repository

Thank you,

Please share a link to your public github repo.

I added it to the original post description.

File is missing:



Hi Franky, I appreciate your help. I added the requirements.txt file but now I get the following error message:

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 534, in _run_script
    exec(code, module.__dict__)
File "/app/pythonproject/", line 12, in <module>
    dataset = pd.read_excel(
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/", line 504, in read_excel
    io = ExcelFile(
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/", line 1580, in __init__
    self._reader = self._engines[engine](
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/excel/", line 552, in __init__
File "/home/appuser/venv/lib/python3.9/site-packages/pandas/compat/", line 135, in import_optional_dependency
    raise ImportError(msg)

Any thoughts?

Just add openpyxl to the requirements.txt file.

You are amazing, thank you.

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