tdryer / hangups

the first third-party instant messaging client for Google Hangouts
https://hangups.readthedocs.io/
MIT License
1.71k stars 189 forks source link

Attribute Error #517

Closed OpenSaned closed 3 years ago

OpenSaned commented 3 years ago

So i am just beginning to discover this library but i am getting this error AttributeError: 'NoneType' object has no attribute 'fetch'

I dont really know what this means cause I'm not really that good in python but here. The answer is probably really simple for you.

Terrance commented 3 years ago

The runner you linked to doesn't load for me (stuck on "waking up") -- consider quoting the actual traceback so we don't have to run your code snippets for you.

But from a quick peek at the code, you probably need to actually connect the client before you use it:

async def main(client):
    await client.connect()
    await client.set_active()

run(main(client))