Module NotFound Error

I was trying to make a streamlit Application
link GitHub - rounakc/Text_Analyzer

while deploying in streamlit it is giving me the following Error ModuleNotFoundError: 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).

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
    exec(code, module.__dict__)File "/mount/src/text_analyzer/app.py", line 64, in <module>
    import nltk

This application is running perfectly in my local machine.
How to Fix this ?

You need a file requirements.txt to install nltk and other packages you may need.

Typo: requirements.txt

Thanks . It worked . This was really a bad mistake . I did not know about this.

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