Mailing List Archive

[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH.
New submission from Ned Batchelder <nedbat@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@bugs.python.org>
<http://bugs.python.org/issue11065>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH. [ In reply to ]
Ned Batchelder <nedbat@users.sourceforge.net> added the comment:

With help from ned_deily in #python-dev, we confirmed this is a dup of http://bugs.python.org/issue10955, and is already fixed.

----------
resolution: -> duplicate

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue11065>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH. [ In reply to ]
Changes by Ned Deily <nad@acm.org>:


----------
status: open -> closed
superseder: -> Possible regression with stdlib in zipfile

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue11065>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com