This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH.
Type: behavior Stage:
Components: None Versions: Python 3.2
Status: closed Resolution: duplicate
Dependencies: Superseder: Possible regression with stdlib in zipfile
View: 10955
Assigned To: Nosy List: nedbat
Priority: normal Keywords:

Created on 2011-01-29 19:12 by nedbat, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg127467 - (view) Author: Ned Batchelder (nedbat) * (Python triager) Date: 2011-01-29 19:12
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/ <<END_PY
j = 1
zip sub/ 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
msg127475 - (view) Author: Ned Batchelder (nedbat) * (Python triager) Date: 2011-01-29 19:36
With help from ned_deily in #python-dev, we confirmed this is a dup of, and is already fixed.
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55274
2011-01-29 19:38:23ned.deilysetstatus: open -> closed
superseder: Possible regression with stdlib in zipfile
2011-01-29 19:36:21nedbatsetresolution: duplicate
messages: + msg127475
2011-01-29 19:12:29nedbatcreate