Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vbox 3.x debs in repo dont support manual python api install #12

Closed
GoogleCodeExporter opened this issue Apr 2, 2015 · 14 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. On ubuntu configure apt sources to get virtualbox from repos
2. Install vbox 3.x
3. Try and do manual api install, files are missing.

What is the expected output? What do you see instead?
Expected to install api into python but install files missing

What version of the product are you using? On what operating system?
Host Ubuntu 8.10 virtualbox 3.0.6r52128 on one machine and 
Host Ubuntu 8.10 virtualbox 3.0.8r53138 on the other same probelm on both

Please provide any additional information below.
For kicks I tried copying the sdk/install dir from the windows distribution 
and using it but it failed with odd errors: I did this:
 cd /usr/lib/virtualbox/sdk/install/
then
python2.6 vboxapisetup.py install
and got this:
Traceback (most recent call last):
  File "vboxapisetup.py", line 61, in <module>
    main(sys.argv)
  File "vboxapisetup.py", line 43, in main
    raise Exception("No VBOX_INSTALL_PATH defined, exiting")
Exception: No VBOX_INSTALL_PATH defined, exiting


Original issue reported on code.google.com by spydmob...@gmail.com on 6 Oct 2009 at 8:16

@GoogleCodeExporter
Copy link
Author

Sorry, this is Ubu 8.10 Server without GUI. Vbox runs totally headless.

Original comment by spydmob...@gmail.com on 7 Oct 2009 at 2:48

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Try:

export VBOX_INSTALL_PATH=/usr/lib/virtualbox/

Original comment by jshwright on 7 Oct 2009 at 4:59

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

ok thanks for responding, I did as suggested,but this failed as the main user 
becuase 
of permissions, so I did this:

sudo su
export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
cd /usr/lib/virtualbox/sdk/install/
python2.6 vboxapisetup.py install
exit

and it seems to take. However when I return to: 
~/vboxweb-read-only
and execute:
python2.6 VBoxWebSrv.py

I get:
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
ImportError: No module named xpcom.vboxxpcom

Ready for whatever is suggested next, I am at loss to sort it on my own....
Franco

Original comment by spydmob...@gmail.com on 7 Oct 2009 at 7:53

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

More info:
When I did the sdk install here was the output:

sparcsadmin@smapp02:~/vboxweb-read-only$ sudo su
root@smapp02:/home/sparcsadmin/vboxweb-read-only# export 
VBOX_INSTALL_PATH=/usr/lib/virtualbox/
root@smapp02:/home/sparcsadmin/vboxweb-read-only# cd 
/usr/lib/virtualbox/sdk/install/
root@smapp02:/usr/lib/virtualbox/sdk/install# python2.6 vboxapisetup.py install
running install
running build
running build_py
copying vboxapi/__init__.py -> build/lib/vboxapi
running install_lib
copying build/lib/vboxapi/__init__.py -> 
/home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi
byte-compiling /home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py to __init__.pyc
running install_egg_info
Removing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info
Writing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info


I had to run it a second time to get output so I think the Removing line is 
becuase 
it was the second time....

Original comment by spydmob...@gmail.com on 7 Oct 2009 at 7:58

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

FYI: Trying to start vboxweb as root resulted in same error as above.

Original comment by spydmob...@gmail.com on 7 Oct 2009 at 8:02

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Try:

export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk/

Original comment by jshwright on 7 Oct 2009 at 8:36

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

ok, was not sure if you meant to try that before install or before starting the 
server, so tried both. install did not give an error.

Trying to start the server as root did error out with:
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
ImportError: No module named xpcom.vboxxpcom

Original comment by spydmob...@gmail.com on 7 Oct 2009 at 10:38

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Well, the issue is it's not finding that module on your python path.

You could try setting PYTHON_PATH to /usr/lib/virtualbox/sdk/

Original comment by jshwright on 8 Oct 2009 at 1:00

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

ok did this: 
export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk/
export PYTHON_PATH=/usr/lib/virtualbox/sdk/
cd /usr/lib/virtualbox/sdk/install/
python2.6 vboxapisetup.py install

got this: 
running install
running build
running build_py
copying vboxapi/__init__.py -> build/lib/vboxapi
running install_lib
copying build/lib/vboxapi/__init__.py -> 
/home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi
byte-compiling /home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py to __init__.pyc
running install_egg_info
Removing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info
Writing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info

then did this (still as root):
cd /home/sparcsadmin/vboxweb-read-only
python2.6 VBoxWebSrv.py

and got this: 
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
  File "/usr/lib/virtualbox/sdk//bindings/xpcom/python/xpcom/vboxxpcom.py", line 51, 
in <module>
    raise Exception, "Cannot find VBoxPython module (make sure you use 64-bit Python 
build with 64-bit VirtualBox, such as /usr/bin/amd64/python)"
Exception: Cannot find VBoxPython module (make sure you use 64-bit Python build 
with 
64-bit VirtualBox, such as /usr/bin/amd64/python)

Original comment by spydmob...@gmail.com on 8 Oct 2009 at 7:23

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

What arch are you running?

Original comment by jshwright on 9 Oct 2009 at 1:45

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Arch? as in 32 vs 64? 32bit Ubuntu hosts and VMs everywhere, I never use 64 bit 
at this 
time. The host machine itself is an HP Proliant DL360 w/4xXenon 2.6 cpus, 20gb 
ram and 
P400i SmartArray

Original comment by spydmob...@gmail.com on 9 Oct 2009 at 6:38

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I think issue 16 is a duplicate of my problem.....

Original comment by spydmob...@gmail.com on 9 Oct 2009 at 6:39

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Please read my "HOWTO" posted in Issue #16.  It addresses all of the problems 
everyone mentioned in this issue.

Original comment by dutko.a...@gmail.com on 4 Jun 2010 at 2:56

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by achim.ha...@gmail.com on 26 Aug 2010 at 2:18

  • Changed state: WontFix
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant