Closed SgtKiLLx closed 2 years ago
Any version of websocket-client version newer than 0.59 is python3 only. I suppose OctoPrint upgraded to the latest stable version supported by both python2 and python3 with the latest update which is 0.59.0 and @cameroncros just needs to update the requirements.txt file to the newer version. If that is the case, you could verify by copying/pasting this URL into Plugin Manager > Get More > ...from URL and clicking Install.
https://github.com/jneilliii/OctoPrint-DiscordRemote/archive/refs/heads/master.zip
Unfortunately, it seems that the 0.59 version works for installing, but something in the underlying code isn't working. @SgtKiLLx may provide more details soon as he was testing for us.
after installing @jneilliii 's fork, setting up the bot. bot not showing online. sending status command through octoprint worked, briefly.
The requests websocket-client version is very sensitive, and different versions break in weird ways.
If you are interested, the discordlib branch in my repo has a partially working discord.py implementation. It is very rough around the edges and doesnt work perfectly yet, (Double messages, no snapshots, etc) but it does work.
I will get a download url shortly.
Download url is:
https://github.com/cameroncros/OctoPrint-DiscordRemote/archive/refs/heads/discordlib.zip
You'll need python 3.
Thanks @jneilliii for trying to fix it, I appreciate the effort.
So @cameroncros is the requests module that you mention what is actually breaking the websocket-client version or is that something different?
The requests version is very sensitive, and different versions break in weird ways.
If you are interested, the discordlib branch in my repo has a partially working discord.py implementation. It is very rough around the edges and doesnt work perfectly yet, (Double messages, no snapshots, etc) but it does work.
I will get a download url shortly.
No problem Cameron. No rush, whenever you can work on it, .
Sorry, I misspoke, it's the websocket-client, not requests that is flakey. I will correct my other comment.
Sorry, I misspoke, it's the websocket-client, not requests that is flakey. I will correct my other comment.
Any clue as to what needs to be fixed? I kinda miss using this plugin .
Best option, upgrade to python3 on your octoprint, and install https://github.com/cameroncros/OctoPrint-DiscordRemote/archive/refs/heads/discordlib.zip
Next best option would be to manually downgrade websocket-client to version 0.57: pip install websocket-client==0.57
. This might break other features, so ideally avoid it.
Best option, upgrade to python3 on your octoprint, and install
https://github.com/cameroncros/OctoPrint-DiscordRemote/archive/refs/heads/discordlib.zip
Next best option would be to manually downgrade websocket-client to version 0.57:
pip install websocket-client==0.57
. This might break other features, so ideally avoid it.
Alright. I'll give it a swing tomorrow.
octoprint-discordremote 2.70.0 requires websocket-client==0.57, but you have websocket-client 0.59.0 which is incompatible