xxtbg / vboxweb

Automatically exported from code.google.com/p/vboxweb
MIT License
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Try:

export VBOX_INSTALL_PATH=/usr/lib/virtualbox/

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Try:

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

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
What arch are you running?

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
I think issue 16 is a duplicate of my problem.....

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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