I am trying to build a streamlit news web app.
For this I am using newsapi-python.
But problem here is while importing we write it as newsapi so it is showing no module ‘newsapi’ error.
This is a bit too few information to give any advice.
Maybe you haven’t installed newsapi-python
in your environment.
Can you provide a github repo link?
You have a typo in your file name:
requirements.txt
And within the file this will probably also fail, because it is an invalid version:
newsapi==0.0.0
Either use a proper version or remove it, you don’t use it anyway.
I have done all those stuff.
So what should I do now??
Nothing worked out.
What should I do now??
Your github repo is not updated.
Well, without any further information, we cannot give any advice.
Where do you run streamlit? Locally? Which environment? Streamlit Cloud?
If you don’t fix the mentioned bugs in the github repo, it will not work…
Btw, you don’t need the click
dependency, this is solved since:
streamlit>=1.8.1
1 Like
Ok