"unknown encoding: string-escape" in frozen Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Groves

    #1

    "unknown encoding: string-escape" in frozen Python

    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.p y", line 61, in __init__
    File "python/velLaunchCode.p y", 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=encodin gs 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


Working...