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)
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 ROOT="$ VMWARE_ INSTALLER" /python
export PYTHON_
. "$PYTHON_ ROOT"/pygtk/ init.sh
export PYTHONHOME=`dirname "$PYTHON_ROOT"` "$PYTHON_ ROOT/lib: $PYTHON_ ROOT/lib/ lib-dynload: $PYTHONPATH" PATH="$ PYTHON_ ROOT/lib/ libsqlite3: $LD_LIBRARY_ PATH"
export PYTHONPATH=
export LD_LIBRARY_
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)