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.

classification
Title: binary code made by freeze results "unknown encoding"
Type: Stage:
Components: Demos and Tools Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: hyeshik.chang, samsjang
Priority: normal Keywords:

Created on 2005-10-13 07:45 by samsjang, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26578 - (view) Author: greatPython (samsjang) Date: 2005-10-13 07:45
One of my python code is like the following.

** mysrc.py **

str = 'I love Python'
print str.encode('UTF-8')

** **

this code runs well in python shell. But binary made by 
freeze.py results the following.
 
Traceback (most recent call last):
  File "/home/samy/src/mysrc.py", line 2, in ?

    print str.encode('UTF-8')
LookupError: unknown encoding: UTF-8
msg26579 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2005-10-13 09:45
Logged In: YES 
user_id=55188

It's not a bug.  You should force freeze to include
"encoding" package.

See http://www.google.com/search?q=freeze+%22unknown+encoding%22
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42475
2005-10-13 07:45:19samsjangcreate