PetterKraabol / Twitch-Python

Object-oriented Twitch API for Python developers
https://pypi.org/project/twitch-python
MIT License
215 stars 37 forks source link

cannot import name 'API' from 'twitch.api' #9

Open mspapant opened 4 years ago

mspapant commented 4 years ago

Hello!

I tried to create an example but unfortunately i get the following error:

ImportError: cannot import name 'API' from 'twitch.api' (/home/mspapant/PycharmProjects/twitch-scraper/venv/lib/python3.7/site-packages/twitch/api/init.py)

Do you know what is the problem?

Thanks

tfzee commented 4 years ago

i got the same error when upgrading from an older version try fully deleting and reinstalling then it worked for me

tfzee commented 4 years ago

you should also make sure to not mix twitch-python(this) and python-twitch-client(https://github.com/tsifrer/python-twitch-client) because they use both the name twitch for import

MarcusPaschoalucci commented 2 years ago

My friends, when you say reinstalling, you reffer to the twitch-python package? Or something else? I tried to reinstall it several times by now, and it still gives me this error or the " cannot import name 'Helix' from 'twitch'"