"unknown encoding: string-escape" in frozen Python

Jeff Groves mikelem at iastate.edu
Fri Mar 2 20:27:15 EST 2007


I'm using FreezePython on a Python program that uses wxPython and subprocess.
The result almost works, but it always hits this bug:

  File "velauncher.py", line 847, in Launch
  File "python/velLaunchCode.py", line 61, in __init__
  File "python/velLaunchCode.py", line 143, in Unix
  File "python/subprocess.py", line 599, in __init__
  File "python/subprocess.py", line 1031, in _execute_child
  File "/usr/lib/python2.3/pickle.py", line 1394, in loads
    return Unpickler(file).load()
  File "/usr/lib/python2.3/pickle.py", line 872, in load
    dispatch[key](self)
  File "/usr/lib/python2.3/pickle.py", line 985, in load_string
    self.append(rep.decode("string-escape"))
LookupError: unknown encoding: string-escape

I tried adding --include-modules=encodings to the arguments, but I'm still
getting the string-escape error. How can I include the encoding in the freeze?

I'm using Python2.3 and the downloadable version of subprocess.py for Python2.3
on Redhat.

-Jeff Groves





More information about the Python-list mailing list