Unable to resolve error

[06:16:30] 📦 Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.




2023-10-07 06:16:51.500 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
  File "/app/careem-app/Careem.py", line 4, in <module>
    import matplotlit.pylot as plt
ModuleNotFoundError: No module named 'matplotlit'
2023-10-07 06:36:14.271 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
  File "/app/careem-app/Careem.py", line 4, in <module>
    import matplotlit.pylot as plt
ModuleNotFoundError: No module named 'matplotlit'

You can fix this by adding matplotlit in a file called requirements.txt in your repository.



Is it the way to add requirements.txt file?

can you share your requirements.txt file?


Here you go.

I think the correct calling of the matplotlib library as follows:-

import matplotlib.pyplot as plt

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