vidhanio / virtualbox-rich-presence Goto Github PK
View Code? Open in Web Editor NEWA Discord Rich Presence for Oracle VM VirtualBox!
License: MIT License
A Discord Rich Presence for Oracle VM VirtualBox!
License: MIT License
Im probably doing something wrong here. but when i run main.py and open up vb, main.py wont detect im in the machine. Not sure whether thats because of the OS im running or because ive done something wrong. Is there anything i specifically have to do in config.ini?
Had to install the packages pywin32 and virtualbox manually.
C:#############CENSORED######>python main.py
Traceback (most recent call last):
File "C:\CENSORED#####\main.py", line 2, in
import virtualbox, json, pprint, configparser, time, psutil, sys
ModuleNotFoundError: No module named 'psutil'
This here provides a reason why you should consider adding a license to any public github repo
It would be a good idea as something like MIT would grant more rights for other people
Hey man, first of all, you have done a great job with this RPC for Virtualbox! But sadly mine is not recognising my VM, in this case I tried with a Windows 95 VM, main.py is not crashing at all and it´s showing just my Virtualbox menu presence and not my machine status.
I have tried to print the VirtualBox machines found list with a single line of code on the main.py and I got this single "Nougat64" machine name and it´s supposed to be a Linux system, I have no idea of what could be.
But I have to say that I move my VM´s that I don´t use for a long time to a external drive to free up some disk space on my PC, so I don´t know if that could be the issue and I would need to remove the references from my VirtualBox list.
I hope you can help me about what could be causing this issue.
Thank you!!
Traceback (most recent call last):
File "C:\Users\DaOnCrack\virtualbox-rich-presence\main.py", line 210, in
RichPresence()
File "C:\Users\DaOnCrack\virtualbox-rich-presence\main.py", line 10, in init
self.virtualbox = virtualbox.VirtualBox()
File "C:\Users\DaOnCrack\AppData\Local\Programs\Python\Python39\lib\site-packages\virtualbox\library_ext\vbox.py", line 22, in init
manager = virtualbox.Manager()
File "C:\Users\DaOnCrack\AppData\Local\Programs\Python\Python39\lib\site-packages\virtualbox_init_.py", line 163, in init
self.manager = vboxapi.VirtualBoxManager(mtype, mparams)
File "C:\Users\DaOnCrack\AppData\Local\Programs\Python\Python39\lib\site-packages\vboxapi_init_.py", line 991, in init
self.platform = PlatformMSCOM(dPlatformParams)
File "C:\Users\DaOnCrack\AppData\Local\Programs\Python\Python39\lib\site-packages\vboxapi_init_.py", line 427, in init
from win32com import universal
ModuleNotFoundError: No module named 'win32com'
When I run it, there is no module named win32com
When I try to launch the script, it returns with the following error:
Traceback (most recent call last):
File "D:\Documents\Others\Virtualbox Rich Presence\presence.py", line 192, in <module>
rich_presence()
File "D:\Documents\Others\Virtualbox Rich Presence\presence.py", line 41, in __init__
client_id = self.config["Rich Presence"]["client_id"]
File "C:\Users\Blob\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 960, in __getitem__
raise KeyError(key)
KeyError: 'Rich Presence'
config.ini
has not been modified.Hey,
Upon configuring the config.ini file and starting the main.py file, I get an error. The screenshot of the error can be found below:
One note, I extracted the SDK into the project root directory and ran the installer there, I wonder would that be something that could have kickstarted this issue.
Additionally, this is my config.ini:
Thanks in advance!
Supra
i did everything correctly and its not really changing the state.
when i run presence.py, i get:
File "C:\Users\epik\downloads\virtualbox-rich-presence\presence.py", line 1, in <module>
import virtualbox, json, pprint, configparser, time, psutil, sys
ModuleNotFoundError: No module named 'virtualbox'
I've installed the Virtualbox SDK from arch linux repos, installed python-virtualbox too and reinstalled virtualbox and I'm getting an error about XPCOM
❯ python presence.py
Traceback (most recent call last):
File "/home/e404nnf/virtualbox-rich-presence/presence.py", line 192, in <module>
rich_presence()
File "/home/e404nnf/virtualbox-rich-presence/presence.py", line 35, in __init__
self.vbox = virtualbox.VirtualBox()
File "/home/e404nnf/.local/lib/python3.9/site-packages/virtualbox/library_ext/vbox.py", line 22, in __init__
manager = virtualbox.Manager()
File "/home/e404nnf/.local/lib/python3.9/site-packages/virtualbox/__init__.py", line 163, in __init__
self.manager = vboxapi.VirtualBoxManager(mtype, mparams)
File "/usr/lib/python3.9/site-packages/vboxapi/__init__.py", line 989, in __init__
self.platform = PlatformXPCOM(dPlatformParams)
File "/usr/lib/python3.9/site-packages/vboxapi/__init__.py", line 752, in __init__
import xpcom.components
File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.py", line 240, in <module>
_shutdownObserver = xpcom.server.WrapObject(_ShutdownObserver(), interfaces.nsIObserver)
File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/__init__.py", line 64, in WrapObject
return _xpcom.WrapObject(policy( ob, iid ), iid, bWrapClient)
File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/policy.py", line 161, in __init__
raise ServerException(nsError.NS_ERROR_NO_INTERFACE)
xpcom.ServerException: 0x80004002 (NS_ERROR_NO_INTERFACE)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.