kotartemiy / newscatcher

Programmatically collect normalized news from (almost) any website.
https://newscatcherapi.com/
MIT License
2.93k stars 280 forks source link

ImportError: cannot import name 'Newscatcher' from partially initialized module 'newscatcher' #46

Open andyvha opened 3 years ago

andyvha commented 3 years ago

Hi team,

I face with this issue after do pip install newscatcher. I use python 3.8.10. Would you please update to fix this.

from newscatcher import Newscatcher

ImportError: cannot import name 'Newscatcher' from partially initialized module 'newscatcher'

Thank you.

espressobeanies commented 2 years ago

Same problem. Python 3.9. Below internet example fails even after force installing newscatcher manually with updated Feedparser version:

!/usr/bin/env python3

from newscatcher import describe_url describe = describe_url('nytimes.com') print(describe['topics'])

./news_test.py Traceback (most recent call last): File "/home/.../news_test.py", line 2, in from newscatcher import describe_url File "/home/.../newscatcher.py", line 2, in from newscatcher import Newscatcher, describe_url ImportError: cannot import name 'Newscatcher' from partially initialized module 'newscatcher' (most likely due to a circular import)

Ubuntu 21.10 literally bricked this package.