cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
66 stars 34 forks source link

Issues after update #227

Closed mrquiglz closed 1 year ago

mrquiglz commented 1 year ago

Describe the bug After updating the plugin via the automatic announcement via octoprint and restarting my server, the plugin is no longer available. It isnt listed anywhere in my plugin manager and errors occur when i attempt to install via URL. I love this plugin as i use it daily. Hoping to see it fixed soon. plugin_discordremote.log

Logs plugin_discordremote.log

Desktop (please complete the following information):

cameroncros commented 1 year ago

Are you able to do a pip list on your octoprint virtual env?

mrquiglz commented 1 year ago

Are you able to do a pip list on your octoprint virtual env?

I can try.

mrquiglz commented 1 year ago

This is what i found after running the command. I even reinstalled the server. When launching it command prompt says there is an issue loading plugin DiscordRemote. Im eager to see if i messed something up or if its a compatibility issue. Pip list

MaleNurse commented 1 year ago

Not sure if it's the same since the above logs contain only a single line, but my issue came down to discord.py removing EmptyEmbed in v2.0. My logs showed cannot import name EmptyEmbed from discord.embeds When I downgraded discord and discord.py to v1.7.3 via pip everything started working again. Since their pip list shows 2.0.1 for discord (the latest release) I would wager that their problem might be the same as mine.

cameroncros commented 1 year ago

Urgh, this is getting very confusing. @MaleNurse what version of python are you using? discord.py 2.0 only supports python 3.10+, and I was assuming that most people would be on an earlier version of python?

MaleNurse commented 1 year ago

@cameroncros yessir, Python 3.10. Python deprecated and removed the Windows installers for anything prior so I was stuck with it on a new install. Otherwise, yeah, life would have been a whole lot easier if I could have just rolled back to 3.9 since yours is not the only plugin that 3.10 is wreaking havoc on.

cameroncros commented 1 year ago

Okay, I have released an update that pins discord.py to 1.7.3. Hopefully it should work for just about everyone, and an update is all that is needed. Please let me know if there are further issues, and I will close this ticket in a week or so

mrquiglz commented 1 year ago

My issue has been resolved. Bot is responding as expected after an update and a restart of the server. Ill leave the ticket open awaiting the resolution for the other member "MaleNurse"

MaleNurse commented 1 year ago

@mrquiglz working for me! thanks @cameroncros!