Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jan 29, 2011, 11:12 AM

Post #1 of 3 (660 views)
Permalink
[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH.

New submission from Ned Batchelder <nedbat [at] users>:

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>
<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


report at bugs

Jan 29, 2011, 11:36 AM

Post #2 of 3 (657 views)
Permalink
[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH. [In reply to]

Ned Batchelder <nedbat [at] users> 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 [at] bugs>
<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


report at bugs

Jan 29, 2011, 11:38 AM

Post #3 of 3 (656 views)
Permalink
[issue11065] Fatal "can't locate locale" errors when zip file with directories is on the PYTHONPATH. [In reply to]

Changes by Ned Deily <nad [at] acm>:


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

_______________________________________
Python tracker <report [at] bugs>
<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

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.