halcy / Mastodon.py

Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
MIT License
867 stars 150 forks source link

AttributeError: 'Mastodon' object has no attribute 'StreamListener' #333

Closed getgle closed 1 year ago

getgle commented 1 year ago

AttributeError: 'Mastodon' object has no attribute 'StreamListener'

getgle commented 1 year ago

Traceback (most recent call last): File "main.py", line 28, in class Listener(mastodon.StreamListener): AttributeError: 'Mastodon' object has no attribute 'StreamListener'

getgle commented 1 year ago

i dont understand why he dosent have StreamListener

andypiper commented 1 year ago

Can you share your code? What version of Mastodon.py are you using? How are you invoking StreamListener?

Does this work for you in the repl?

from mastodon.streaming import StreamListener
halcy commented 1 year ago

Closing this for now - if it's still an issue, please reopen.