kotartemiy/newscatcher

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

andyvha opened this issue · 1 comments

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.

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.