Help installing Python bindings?

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
LPIII
Posts: 39
Joined: 18. Jun 2022, 01:23

Help installing Python bindings?

Post by LPIII »

I have installed Python, pywin32, and VirtualBox (SDK). Now what do I do?
LPIII
Posts: 39
Joined: 18. Jun 2022, 01:23

Re: Help installing Python bindings?

Post by LPIII »

At

Code: Select all

"C:\Users\LPIII\Downloads\VirtualBoxSDK-7.1.10-169112\sdk\installer\python"
I opened a terminal and attempted to install the vboxapi module by running:

Code: Select all

python vboxapisetup.py install
And I got:

Code: Select all

python: can't open file 'C:\\Users\\LPIII\\Downloads\\VirtualBoxSDK-7.1.10-169112\\sdk\\installer\\vboxapisetup.py': [Errno 2] No such file or directory
I am sure that vboxapisetup.py is at "C:\Users\LPIII\Downloads\VirtualBoxSDK-7.1.10-169112\sdk\installer\python\vboxapisetup.py"
Last edited by LPIII on 10. Jul 2025, 05:48, edited 1 time in total.
multiOS
Volunteer
Posts: 1734
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, BSD
Location: United Kingdom

Re: Help installing Python bindings?

Post by multiOS »

You might have more success attracting attention by posting programming questions in this sub-forum: viewforum.php?f=34

I presume you've found these resources:
- the VirtualBox Technical documentation https://www.virtualbox.org/wiki/Technical_documentation
- the SDK Programming Guide https://download.virtualbox.org/virtualbox/SDKRef.pdf
klaus
Oracle Corporation
Posts: 2003
Joined: 10. May 2007, 14:57

Re: Help installing Python bindings?

Post by klaus »

Moved according to the OP's request.

Your problem must be due to a difference in the current directory from reality and what you think it was. Suspect you were at
"C:\Users\LPIII\Downloads\VirtualBoxSDK-7.1.10-169112\sdk\installer"
and not in the "python" subdirectory.

Please retry. Worst case (and as a way to "get it right") just use the full path in the python command line, such as
python C:\Users\LPIII\Downloads\VirtualBoxSDK-7.1.10-169112\sdk\installer\vboxapisetup.py install
LPIII
Posts: 39
Joined: 18. Jun 2022, 01:23

Re: Help installing Python bindings?

Post by LPIII »

I got

Code: Select all

python: can't open file 'C:\\Users\\LPIII\\Downloads\\VirtualBoxSDK-7.1.10-169112\\sdk\\installer\\vboxapisetup.py': [Errno 2] No such file or directory
vboxapisetup.py is also at

Code: Select all

"C:\Program Files\Oracle\VirtualBox\sdk\installer\python\vboxapisetup.py"
I suppose Virtualbox came with SDK.
klaus
Oracle Corporation
Posts: 2003
Joined: 10. May 2007, 14:57

Re: Help installing Python bindings?

Post by klaus »

The first issue must be "user error" - python wouldn't complain about "No such file or directory" if the file were actually there.

And yes, a subset of the SDK is part of the VirtualBox installer. The python part. Guess why the installer has provisions for installing the python bindings directly? If you have python in the path (and the prerequisites present) you'll get everything done automatically.
Post Reply