Comment 6 for bug 938869

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

Evan Broder wrote in

https://bugs.launchpad.net/ubuntu/+source/python3.2/+bug/917088:

-------------------------------------------------------------------------------------------------------

I ran into this error while installing VMware Player on Precise. I believe I've tracked it down to the environment that the VMware installer sets.

/usr/lib/vmware-installer/2.0/python/init.sh:

if [ -z "$_VMIS_INIT_PYTHON" ]; then
    export PYTHON_ROOT="$VMWARE_INSTALLER"/python

    . "$PYTHON_ROOT"/pygtk/init.sh

    export PYTHONHOME=`dirname "$PYTHON_ROOT"`
    export PYTHONPATH="$PYTHON_ROOT/lib:$PYTHON_ROOT/lib/lib-dynload:$PYTHONPATH"
    export LD_LIBRARY_PATH="$PYTHON_ROOT/lib/libsqlite3:$LD_LIBRARY_PATH"

    PYTHON="$PYTHON_ROOT/python"

    export PYTHON
    export _VMIS_INIT_PYTHON=1
fi

Setting PYTHONHOME as init.sh sets it is enough to get python3.2mu to abort:

evan@evan-precise-amd64:~$ PYTHONHOME=/usr/lib/vmware-installer/2.0/python /usr/bin/python3.2mu /usr/bin/lsb_release -sd
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
Aborted (core dumped)