Ticket #10110 (closed defect: worksforme)

Opened 9 years ago

Last modified 8 years ago

Python bindings not properly installed under Ubuntu Server

Reported by: nex Owned by:
Component: other Version: VirtualBox 4.1.8
Keywords: Python Bindings Cc:
Guest type: Windows Host type: Linux

Description (last modified by frank) (diff)

When trying to install VirtualBox 4.1.8 on Ubuntu Server Oneiric and Ubuntu Server Natty, the Python bindings suffer some installation issues. When using the multi-distro installer (.run) the file located at /opt/VirtualBox seems to be not correctly linked to the proper local Python version and it causes and ImportError when trying to use vboxapi.

A workaround fix is to remove and make a symlink of to Seems like the candidates in /opt/VirtualBox/sdk/bindings/xpcom/python/xpcom/

candidates = ['VBoxPython' + str(sys.version_info[0]) + '_' + str(sys.version_info[1]),
             'VBoxPython' + str(sys.version_info[0]),

Are not executed in a proper order or are not matching the correct version.

When using the Ubuntu .deb installer this problem doesn't occur, but the bindings paths are not correctly installed or globally added to PYTHONPATH. A workaround fix is to add the following line in ~\.bashrc:

export PYTHONPATH=$PYTHONPATH:/usr/lib/virtualbox/:/usr/lib/virtualbox/sdk/bindings/xpcom/python/

Change History

comment:1 Changed 9 years ago by Technologov

Ubuntu 11.10 = oneiric

Ubuntu 11.04 = natty

In short it seems that both distro-specific and multi-distro installers fail to install VBoxPython properly.


comment:2 Changed 9 years ago by Technologov

This Bug is related to bug #10079

comment:3 Changed 8 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)

Works fine here on Oneiric with VBox 4.1.10.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use