p2exe and ZODB

Harry George hgg9140 at seanet.com
Mon Nov 11 21:05:16 EST 2002


Etienne Labuschagne <ELabuschane at gmsonline.co.za> writes:

> Content-type: text/html ; charset = "iso-8859-1"
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>p2exe and ZODB</TITLE>
> </HEAD>
> <BODY>
> 
> <P><FONT SIZE=2>Hi there,</FONT>
> </P>
> 
> <P><FONT SIZE=2>I am using stand-alone ZODB (Zope Object Database) in a applica
> tion written in Python.  The platform I am targeting is Windows 2000 and W
> indows XP.  So far I had no luck  py2exe'ing the product with ZODB in
> cluded.  What I have done is to exclude ZODB (-e flag for py2exe) and crea
> te an install without the stand-alone ZODB.  I then manually copy the ZODB
>  and all files needed by it (eg. base64) into the dist created by py2exe.</FONT
> ></P>
> 
> <P><FONT SIZE=2>This works, but I sometimes get (seemingly) random pickling err
> ors when calling get_transaction().commit() on the ZODB database.  This ca
> uses a lot of havoc as the transaction then also seems to be lost, which is VER
> Y bad!</FONT></P>
> 
> <P><FONT SIZE=2>Anyone had any luck with py2exe and apps using ZODB?</FONT>
> </P>
> 
> <P><FONT SIZE=2>If I can't get this to work, are there any other "python n
> ot needed for install" methods to package my product in?</FONT>
> </P>

I'm having trouble using standalone ZODB, with ramdom pickling errors
on commit as well.  I'm running on Linux, not Win**.  Maybe there is a
problem in ZODB?  My next attempt is to do the pickling directly, and
just make a database to store those strings.


> 
> <P><FONT SIZE=2>Regards</FONT>
> <BR><FONT SIZE=2>Etienne Labuschagne</FONT>
> </P>
> 
> </BODY>
> </HTML>

-- 
Harry George
hgg9140 at seanet.com



More information about the Python-list mailing list