Tenrys / csgo_richpresence

Discord Rich Presence support for Counter-Strike: Global Offensive!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Name systray is not defined!

notohh opened this issue · comments

Title. Happens when i try and run the program manually, after it didnt work when i used the installer.

commented

Was it with the executable or the Python script? As far as I know the dependencies should be bundled with the executable. If not then you need to install them manually, they are listed in the README. If you are trying to run it with the Python script you will need to install the dependencies yourself.

Its with the exec, csgo_richpresence.exe from the latest release.

Yeah bro i have this error too, i'm using csgo_richpresence.exe

I have already installed Python's last version.

commented

same

commented

I'm working on rewriting this program in another language so it just works, and better, but for the time being try doing pip install systray and see what that changes.

commented

I am getting some error when i amd trying that command
Here is a gif http://media.odar.xyz/d0L89WC4Kf.gif

commented

and sure i will wait for the new update :D

commented

Oops, try these commands instead.
pip install infi.systray
pip install win10toast
pip install PyVDF
That should make it work. I'm not sure if the program itself works that well anymore though.

commented

i think it's a limitation that the systray object is only created when silent mode is on and it's not assigned to anything by default so if systray: fails. i'm not a python expert though so i'm not 100% on it

commented

That's exactly what the if sistray: bit is for, checking if it's assigned.

commented

really? because i tried in the python repl just now:
image

however if you just initialized it to None:
image

commented

Well, it would be helpful if I got the line where the original error happens so I can tell where exactly it breaks and fix the error at least.

commented

Gonna close this for now, tell me if there is any more issues with the latest revision.