njouanin / hbmqtt

MQTT client/broker using Python asynchronous I/O
MIT License
800 stars 188 forks source link

Library doesn't work with websockets v5 #134

Closed damouse closed 6 years ago

damouse commented 6 years ago

The newest release of websockets (v5.0) doesnt work with htmqtt 0.9.2. It worked with 4.x.x, but now raises:

...
  File "/usr/local/lib/python3.6/dist-packages/hbmqtt/client.py", line 21, in <module>
    from websockets.handshake import InvalidHandshake
ImportError: cannot import name 'InvalidHandshake'

Seems the two options are to release a new version of the library that works with websockets v5 or to pin the version of the dependency so the newest version is not installed.

damouse commented 6 years ago

Nevermind, already addressed in a PR