createcandle / gateway-addon-python

Python bindings for developing add-ons for WebThings Gateway
Mozilla Public License 2.0
0 stars 0 forks source link

Update websocket client to 1.X.X #1

Open flatsiedatsie opened 2 years ago

flatsiedatsie commented 2 years ago

This currently still requires websocket-client==0.57.0.

The question is if this code can start using more up to date versions, because this gateway_addon is now holding back python updates for the entire system.

flatsiedatsie commented 2 years ago

pip list --outdated will show which python modules on the controller are outdated.

Try updating all python modules (https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip#3452888) and then you'll see the error that is created because from websocket-client 1.x it started working a little differently.

Only do this on a throw away system.

flatsiedatsie commented 1 year ago

Done. It required the addition of 4 characters :-)

Still needs a bit more testing, but seems to work fine.