Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error runing with websocket client #29

Open
freefri opened this issue Aug 20, 2021 · 3 comments
Open

Error runing with websocket client #29

freefri opened this issue Aug 20, 2021 · 3 comments

Comments

@freefri
Copy link

freefri commented Aug 20, 2021

I am getting the error
AttributeError: module 'websocket' has no attribute 'client'

I am getting this error after running pip install websocket-client with Python 3.9 on Windows 10. I have got websocket-client 1.2.1 which contain this line:

self.connection = await websockets.client.connect('ws://ws.sinric.pro',

Checking the code in the repository I see that this line was changed here

self.connection = await client.connect('ws://ws.sinric.pro',

Maybe I am doing something wrong? or the last changes were not yet released in pip?

@thegoliathgeek
Copy link
Contributor

@freefri it's pip install websockets. Am still working on new updates with event_loops. Will publish it soon.

@freefri
Copy link
Author

freefri commented Dec 30, 2021

Hi, any updates here?

@desdal
Copy link

desdal commented Feb 8, 2022

Edit the file sinric/_sinricprosocket.py
add this line next to "import websockets" line:

from websockets import client as wsClient
websockets.client=wsClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants