Blender-rpc icon indicating copy to clipboard operation
Blender-rpc copied to clipboard

Can't enable the add-on

Open jerry-sky opened this issue 4 years ago • 11 comments

Currently, when I try to enable the add-on, I get the following error message:

the error message

Running Blender 2.83.1 (2020-06-25) on Linux Mint Tricia 19.3 with Cinnamon DE.

jerry-sky avatar Jul 02 '20 16:07 jerry-sky

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.

Protinon avatar Jul 02 '20 17:07 Protinon

That is not the case – I have Discord installed. I'm also using Discord Presence for VS Code which does work.

jerry-sky avatar Jul 02 '20 19:07 jerry-sky

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.

Protinon avatar Jul 02 '20 21:07 Protinon

I wasn't able to re-create it in the VM. Is discord running when you try to enable the addon?

Protinon avatar Jul 03 '20 21:07 Protinon

Yes, it is running.

jerry-sky avatar Jul 04 '20 03:07 jerry-sky

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

Protinon avatar Jul 04 '20 14:07 Protinon

For both versions (4.0.0 and 3.3.2) of pypresence the script you provided is executed normally; stdout and stderr are empty.

jerry-sky avatar Jul 05 '20 15:07 jerry-sky

Well that narrows it down a bit. I’ll keep looking into this.

Protinon avatar Jul 06 '20 15:07 Protinon

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.

jerry-sky avatar Jul 08 '20 11:07 jerry-sky

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.

Protinon avatar Jul 12 '20 21:07 Protinon

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.

SethFalco avatar Aug 15 '21 10:08 SethFalco