[New-bugs-announce] [issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH.

Ned Batchelder report at bugs.python.org
Sat Jan 29 20:12:30 CET 2011


New submission from Ned Batchelder <nedbat at users.sourceforge.net>:

Run this shell script against 3.2, and it will fail. Against 3.1, it succeeds. I've been running tests on Ubuntu 10.10.


mkdir -p sub
cat >sub/modzip.py <<END_PY
j = 1
END_PY
zip zipmod.zip sub/modzip.py
PYTHONPATH=zipmod.zip python3 -c "import sys; print(sys.version)"


The failure I get is:

Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding

----------
components: None
messages: 127467
nosy: nedbat
priority: normal
severity: normal
status: open
title: Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH.
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11065>
_______________________________________


More information about the New-bugs-announce mailing list