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
Packaging bug report
-
- Oracle Corporation
- Posts: 793
- Joined: 7. Jan 2008, 16:17
Re: Packaging bug report
So you had Python installed but not "distutils.core"?? Thanks for this report.
Oracle Corp.
-
- Posts: 83
- Joined: 7. Jul 2009, 08:28
- Primary OS: OpenSolaris other
- VBox Version: PUEL
- Guest OSses: Linux, OSOL, Windows
Re: Packaging bug 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.Ramshankar wrote:So you had Python installed but not "distutils.core"?? Thanks for this report.
//Jim
-
- Posts: 5
- Joined: 18. Jul 2009, 16:34
- Primary OS: OpenSolaris 11
- VBox Version: PUEL
- Guest OSses: Windows, Solaris
Re: Packaging bug report (ticket 4570)
I just filed a ticket for this issue: http://www.virtualbox.org/ticket/4570
Thanks for posting about this. Saved me some time.
Thanks for posting about this. Saved me some time.
-
- Posts: 2
- Joined: 19. Mar 2012, 13:24
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris
Re: Packaging bug report
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.
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.
-
- Posts: 2
- Joined: 19. Mar 2012, 13:24
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris
Re: Packaging bug report
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
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
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.