pickle and py2exe
justinstraube at charter.net
Fri Dec 3 00:47:59 CET 2004
On Tue, 30 Nov 2004 22:48:39 -0600, "Catfish" <losnations at comca> wrote:
>I did this a while back, and I can't remember exactly. Therefore, I may only
>be able to give you a push in the right direction until someone else can
>answer it fully.
>However, I think you have to force the db into the py2exe compile. I think
>it's something like this:
>Try this and see if it works.
This brought up an error, option: --force-import not recognized.
While looking into this, I had seen some mention of protocol option in pickle. I
hadnt specified anything for protocol, so it defaults to 0 though I dont know
what that is. Its my first time using pickle and second with py2exe.
Thanks for the suggestion, Ill keep trying at this and another idea without
>"Justin Straube" <justinstraube at ch> wrote in message
>news:qphqq0poq7d842fvm6hvu2gah4amh4l70k at 4ax.com...
>> Im trying to compile a script with py2exe. The pickle module is causing
>> program to give an error.
>> Traceback (most recent call last):
>> File "SETIstat.pyw", line 330, in ?
>> File "SETIstat.pyw", line 84, in start_up
>> File "SETIstat.pyw", line 79, in config_load
>> File "pickle.pyc", line 1390, in load
>> File "pickle.pyc", line 872, in load
>> File "pickle.pyc", line 985, in load_string
>> LookupError: unknown encoding: string-escape
>> the data in the pickled file is a dictionary containing a couple strings.
>> strings do contain \n and \t charaters but no other special characters or
>> Does anyone have any suggestions to what I can try to get around this? The
>> pickle module works fine when the .pyw file is run. Its only when I
>> compile this
>> is there an issue.
>> Thanks for any help,
More information about the Python-list