Code Monkey home page Code Monkey logo

virtualbox-rich-presence's Issues

Im probably doing something wrong

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?

Python main.py error

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'

Adding a license

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

VM Status not showing up

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.

imagen

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.

imagen

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.

imagen

I hope you can help me about what could be causing this issue.
Thank you!!

python main.py error win32com

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

KeyError: 'Rich Presence'

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'
  • OS: Windows Version 20H2 (Build 19042.685)
  • Python: Python 3.9.1 downloaded from here
  • All pip packages has been updated.
  • config.ini has not been modified.

"Operation Unavailable" error - win32com

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:
image

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:
image

Thanks in advance!
Supra

presence.py not working

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'

presence.py throws errors when starting it

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.