Error Fedora Code 1 and CPickle

Hi,
  I'm getting an error in Cpickle using Fedora Code 1. Something about a
bad unicode ASUTF8St5ring. Specifically I am using cx_freeze on code
that import cPickle.

  I'm run into some reference to this problem before - but have not found
a solution. Has anyone run into this - and if so what is the solution.

  Also thanks again to the list in the help getting cxfreeze up and
running.

Mike Wagman <mwagman@charter.net> writes:

  I'm getting an error in Cpickle using Fedora Code 1. Something about a
bad unicode ASUTF8St5ring. Specifically I am using cx_freeze on code
that import cPickle.

  I'm run into some reference to this problem before - but have not found
a solution. Has anyone run into this - and if so what is the
solution.

I think that is related to the codecs functionality. I ran into a
similar problem when trying to use 4suite + wxPython. I traced it
down to the codecs module trying to dynamically __import__ the utf-8
charset.

To get cx_Freeze to pick it up, I added a kludge:

  import encodings.utf_8

to my main module. This works well enough since utf_8 is the only
thing I support.

···

--
Chris Green <cmg@dok.org>
Chicken's thinkin'

Still getting the same error. Tried upgrading the pthon and
python-developers on Fedora - no help.

I keep getting Failed to load PyunicodeUCS_EncodeUTF8 - even with the
change.

It seems to only happen with code that uses cPickle.

···

On Fri, 2004-04-16 at 09:05, Chris Green wrote:

Mike Wagman <mwagman@charter.net> writes:

> I'm getting an error in Cpickle using Fedora Code 1. Something about a
> bad unicode ASUTF8St5ring. Specifically I am using cx_freeze on code
> that import cPickle.
>
> I'm run into some reference to this problem before - but have not found
> a solution. Has anyone run into this - and if so what is the
> solution.

I think that is related to the codecs functionality. I ran into a
similar problem when trying to use 4suite + wxPython. I traced it
down to the codecs module trying to dynamically __import__ the utf-8
charset.

To get cx_Freeze to pick it up, I added a kludge:

  import encodings.utf_8

to my main module. This works well enough since utf_8 is the only
thing I support.

This is only a guess since I have not seen this particular error before,
but I would suspect that your cPickle module is incompatible with your
Python distribution (or base executable used by cx_Freeze). So a few
questions for you that might help solve this problem:

1) can you import the cPickle module directly from the Python
interpreter?

2) if the answer to the above is yes, then the base executable that you
are using with cx_Freeze, did you build it yourself or did you use a
prebuilt base executable?

···

On Fri, 2004-04-16 at 09:14, Mike Wagman wrote:

Still getting the same error. Tried upgrading the pthon and
python-developers on Fedora - no help.

I keep getting Failed to load PyunicodeUCS_EncodeUTF8 - even with the
change.

It seems to only happen with code that uses cPickle.

On Fri, 2004-04-16 at 09:05, Chris Green wrote:
> Mike Wagman <mwagman@charter.net> writes:
>
> > I'm getting an error in Cpickle using Fedora Code 1. Something about a
> > bad unicode ASUTF8St5ring. Specifically I am using cx_freeze on code
> > that import cPickle.
> >
> > I'm run into some reference to this problem before - but have not found
> > a solution. Has anyone run into this - and if so what is the
> > solution.
>
> I think that is related to the codecs functionality. I ran into a
> similar problem when trying to use 4suite + wxPython. I traced it
> down to the codecs module trying to dynamically __import__ the utf-8
> charset.
>
> To get cx_Freeze to pick it up, I added a kludge:
>
> import encodings.utf_8
>
> to my main module. This works well enough since utf_8 is the only
> thing I support.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
Anthony Tuininga
anthony@computronix.com

Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838