Page 1 of 1

Packaging bug report

PostPosted: 16. Jul 2009, 14:52
by jimklimov
Package SUNWvbox (VirtualBox 3.0.2) requred SUNWPython-devel (for distutils.core file) but the package dependency file doesn't mention that.

For googlers, error looks like:

...
VirtualBox NetAdapter kernel module loaded.
VirtualBox NetFilter kernel module loaded.
svcVirtualBox USB kernel module loaded.
Configuring services and drivers...
Installing Python bindings...
Traceback (most recent call last):
File "./vboxapisetup.py", line 17, in ?
from distutils.core import setup
ImportError: No module named distutils.core
Updating boot archive...
Done.

Installation of <SUNWvbox> was successful.

Adding the Python packages and removing+adding SUNWvbox package solved the issue:

# pkginfo | grep Pyth
GNOME2 SUNWPython The Python interpreter, libraries and utilities
GNOME2 SUNWPython-devel The Python interpreter, libraries and utilities - development files
GNOME2 SUNWPython-extra Supplemental Python libraries and utilities
system SUNWlxml-python The XML library - Python bindings

Re: Packaging bug report

PostPosted: 16. Jul 2009, 18:38
by Ramshankar
So you had Python installed but not "distutils.core"?? Thanks for this report.

Re: Packaging bug report

PostPosted: 17. Jul 2009, 08:58
by jimklimov
Ramshankar wrote:So you had Python installed but not "distutils.core"?? Thanks for this report.


Correct. It was not installed originally (i.e. as a Python cluster), and separate packages were added later on to run a specific program (by add-and-test method). The -devel package was not needed back then, so it wasn't installed.

//Jim

Re: Packaging bug report (ticket 4570)

PostPosted: 18. Jul 2009, 16:39
by gwr
I just filed a ticket for this issue: http://www.virtualbox.org/ticket/4570

Thanks for posting about this. Saved me some time.

Re: Packaging bug report

PostPosted: 19. Mar 2012, 21:21
by pfu
Hi, I got the same issue but with a different result. I have the SUNWPython-devel package on my box but installer for VB breaks the vboxapisetup.py part of the installation

Installing Python bindings...
Traceback (most recent call last):
File "./vboxapisetup.py", line 14, in ?
from distutils.core import setup
ImportError: No module named distutils.core
- Installed: Bindings for Python 2.6
Updating the boot archive...

Installation of <SUNWvbox> was successful.

$ pkginfo | grep Python
GNOME2 SUNWPython The Python interpreter, libraries and utilities
GNOME2 SUNWPython-devel The Python interpreter, libraries and utilities - development files
GNOME2 SUNWPython-share The Python interperer, libraries and utilities - platform independent files, /usr/sfw/share
system SUNWlxml-python The XML library - Python bindings
system SUNWlxsl-python The XSLT library - Python bindings

I'm running Solaris 10u10 and VB 4.1.10.

Re: Packaging bug report

PostPosted: 20. Mar 2012, 06:07
by pfu
got a fix by manually installing vboxapisetup.py

export VBOX_INSTALL_PATH=/opt/VirtualBox
python ./vboxapisetup.py install

something is funky on vboxconfig.sh for solaris

pfu wrote:Hi, I got the same issue but with a different result. I have the SUNWPython-devel package on my box but installer for VB breaks the vboxapisetup.py part of the installation

Installing Python bindings...
Traceback (most recent call last):
File "./vboxapisetup.py", line 14, in ?
from distutils.core import setup
ImportError: No module named distutils.core
- Installed: Bindings for Python 2.6
Updating the boot archive...

Installation of <SUNWvbox> was successful.

$ pkginfo | grep Python
GNOME2 SUNWPython The Python interpreter, libraries and utilities
GNOME2 SUNWPython-devel The Python interpreter, libraries and utilities - development files
GNOME2 SUNWPython-share The Python interperer, libraries and utilities - platform independent files, /usr/sfw/share
system SUNWlxml-python The XML library - Python bindings
system SUNWlxsl-python The XSLT library - Python bindings

I'm running Solaris 10u10 and VB 4.1.10.

Re: Packaging bug report

PostPosted: 22. Nov 2012, 16:12
by klaus
Solaris 10u10 ships a broken python 2.4 install, and this is the cause of the error. Totally harmless, and simply means that the python bindings won't work with python 2.4, which is no big issue since the default python version is 2.6 anyway. If you want to use python 2.4 in Solaris 10u10 for any serious work you'll probably need to convince the Solaris support to get this fixed.