Packaging bug report

Discussions related to using VirtualBox on Solaris hosts.

Packaging bug report

Postby jimklimov » 16. Jul 2009, 14:52

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
jimklimov
 
Posts: 82
Joined: 7. Jul 2009, 08:28
Primary OS: OpenSolaris other
VBox Version: PUEL
Guest OSses: Linux, OSOL, Windows

Re: Packaging bug report

Postby Ramshankar » 16. Jul 2009, 18:38

So you had Python installed but not "distutils.core"?? Thanks for this report.
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 778
Joined: 7. Jan 2008, 16:17

Re: Packaging bug report

Postby jimklimov » 17. Jul 2009, 08:58

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
jimklimov
 
Posts: 82
Joined: 7. Jul 2009, 08:28
Primary OS: OpenSolaris other
VBox Version: PUEL
Guest OSses: Linux, OSOL, Windows

Re: Packaging bug report (ticket 4570)

Postby gwr » 18. Jul 2009, 16:39

I just filed a ticket for this issue: http://www.virtualbox.org/ticket/4570

Thanks for posting about this. Saved me some time.
gwr
 
Posts: 5
Joined: 18. Jul 2009, 16:34
Primary OS: OpenSolaris 11
VBox Version: PUEL
Guest OSses: Windows, Solaris

Re: Packaging bug report

Postby pfu » 19. Mar 2012, 21:21

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.
pfu
 
Posts: 2
Joined: 19. Mar 2012, 13:24
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Solaris

Re: Packaging bug report

Postby pfu » 20. Mar 2012, 06:07

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.
pfu
 
Posts: 2
Joined: 19. Mar 2012, 13:24
Primary OS: Solaris
VBox Version: OSE other
Guest OSses: Solaris

Re: Packaging bug report

Postby klaus » 22. Nov 2012, 16:12

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.
klaus
Oracle Corporation
 
Posts: 573
Joined: 10. May 2007, 14:57


Return to VirtualBox on Solaris Hosts

Who is online

Users browsing this forum: No registered users and 1 guest