ModuleNotFoundError, the package/module listed in requirement.txt

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).

Traceback:

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/picanalytics/Home.py", line 15, in <module>
    from django.core.wsgi import get_wsgi_application
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/picanalytics/pages/3_News.py", line 2, in <module>
    from newsapi import NewsApiClient

requirements.txt

altair==4.2.2
Django==4.2.1
gensim==4.3.0
googletrans==3.1.0a0
matplotlib==3.7.1
networkx==3.0
newsapi==0.1.1
newsapi_python==0.2.7
nltk==3.8.1
notebook==6.5.2
numpy==1.24.2
pandas==1.5.3
Pillow==9.5.0
plotly==5.13.1
pyLDAvis==3.4.1
pyvis==0.3.2
PyYAML==6.0
scipy==1.10.1
seaborn==0.12.2
snscrape==0.6.1.20230314
streamlit==1.19.0
streamlit_extras==0.2.7
wordcloud==1.8.2.2

Hi @Pic ,

Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here and please update your question to include links to your GitHub repo and app, and the full error message.

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