Blender-rpc
Blender-rpc copied to clipboard
Can't enable the add-on
Currently, when I try to enable the add-on, I get the following error message:
Running Blender 2.83.1 (2020-06-25) on Linux Mint Tricia 19.3 with Cinnamon DE.
Looks like you don't have discord installed on your Linux Mint environment. You need to have the desktop application installed and be logged in for this addon to function properly.
That is not the case – I have Discord installed. I'm also using Discord Presence for VS Code which does work.
Hm that's weird. I found another occurrence of this issue, but it was inconclusive. I'll fire up a VM and see if I can re-create the error.
I wasn't able to re-create it in the VM. Is discord running when you try to enable the addon?
Yes, it is running.
I've been thinking pypresence is the underlying problem, but let's verify that, Blender could be the issue. Try installing the version of pypresence that this repo currently uses python3 -m pip install pypresence==3.3.2
and run this script to see if you get the same error.
import pypresence as rpc
rpcConn = rpc.Presence("674448359850901546")
rpcConn.connect()
rpcConn.close()
If that fails, try the latest version and see if that also fails python3 -m pip install pypresence==4.0.0
For both versions (4.0.0
and 3.3.2
) of pypresence
the script you provided is executed normally; stdout
and stderr
are empty.
Well that narrows it down a bit. I’ll keep looking into this.
I think I found a solution by accident. I was working on resolving another issue with another add-on and one of the troubleshooting measures I've taken was to uninstall Blender from snap
and install it directly from blender.org.
I'm not certain if this is the real solution, but should anyone else have any problems with the add-on, they can try this solution.
Had some time this weekend to look around some more, but it I couldn't find anything more than what you already discovered. I'm not familiar enough with Snap to debug this.
I'll leave the issue open since this is really just a workaround.
I'm not certain if this is the real solution, but should anyone else have any problems with the add-on, they can try this solution.
I can vouch that it works for me via snap today. Could be that you didn't use classic confinement?
I don't know about 2020, but currently we're only allowed to install Blender with the --classic
argument.