VirtualBox

Ticket #4570 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

vboxapisetup.py - No module named distutils.core => fixed in SVN

Reported by: gwr Owned by:
Priority: minor Component: installer
Version: VirtualBox 3.0.2 Keywords: pkgadd distutils
Cc: Guest type: other
Host type: Solaris

Description

Attempting to install VirtualBox-3.0.2-SunOS-r49928.pkg on Solaris Nevada (snv_119) and saw this error:

    pkgadd -d VirtualBox-3.0.2-SunOS-r49928.pkg
    [...]
    ## Executing postinstall script.
    Loading VirtualBox kernel modules...
    VirtualBox Host kernel module loaded.
    VirtualBox NetAdapter kernel module loaded.
    VirtualBox NetFilter kernel module loaded.
    VirtualBox 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.

My system was installed with the SUNWCuser "cluster", ("End User System Support") not the "full distribution".

The installed Python packages are:

    gwr# pkginfo |grep SUNWPython
    GNOME2      SUNWPython                      The Python interpreter, libraries and utilities
    GNOME2      SUNWPython-extra                Supplemental Python libraries and utilities
    GNOME2      SUNWPython25                    The Python interpreter, libraries and utilities
    GNOME2      SUNWPython26                    The Python interpreter, libraries and utilities
    GNOME2      SUNWPython26-extra              Supplemental Python libraries and utilities

It looks like distutils.core file is part of this package:

    SUNWPython-devel

This solved the problem for me:

    pkgadd -d ... SUNWPython-devel
    pkgrm SUNWvbox
    pkgadd -d VirtualBox-3.0.2-SunOS-r49928.pkg

Change History

comment:1 Changed 5 years ago by gwr

The "depend" file in the SUNWvbox package really should include

P SUNWPython-devel	The Python interpreter, libraries and utilities - development files

comment:2 Changed 5 years ago by gwr

Or alternatively, make that part of the postinstall script check for existence of the distutils.core object and skip setting up the Python bindings if that's missing.

comment:3 Changed 5 years ago by ramshankar

Thanks a lot for the report. This has been fixed in internal SVN and should be part of the next release.

comment:4 Changed 5 years ago by ramshankar

  • Summary changed from vboxapisetup.py - No module named distutils.core to vboxapisetup.py - No module named distutils.core => fixed in SVN

comment:5 Changed 5 years ago by sandervl73

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use