Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'NewsApiClient' from 'newsapi #92

Open
TheFirstPhoenix opened this issue Dec 30, 2023 · 1 comment
Open

Comments

@TheFirstPhoenix
Copy link

TheFirstPhoenix commented Dec 30, 2023

pip install newsapi-python

from newsapi import NewsApiClient

its suppost to allow me to all newsapiclient into other scripts but insted it says

line 4, in
from newsapi import NewsApiClient
ImportError: cannot import name 'NewsApiClient' from 'newsapi' (C:\Users"my name"\AppData\Local\Programs\Python\Python311\Lib\site-packages\newsapi_init_.py

@sicin
Copy link

sicin commented Apr 16, 2024

https://stackoverflow.com/a/67465185/12494235 or use newsapi.newsapi_client instead of from newsapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants