Re: Pickling errors with tz.FixedOffsetTimezone
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Il giorno ven, 16/01/2009 alle 13.22 +0100, Lawrence Oluyede ha scritto: > I have a web application that uses memcached to store some data. > Some of that data is retrieved through psycopg2 (2.0.8) and contains > datetime instances. > > Sometimes I get the following exception while trying to put objects > into the memcached cache: > "PicklingError: Can't pickle <class > 'psycopg2.tz.FixedOffsetTimezone'>: it's not the same object as > psycopg2.tz.FixedOffsetTimezone" Once I was bitten by a very similar error. The module was loaded two times from different paths and instances created with the first copy of the module could not be pickled by the code that had the second copy available. I didn't dig too much to understand what was happening because we were in a hurry and simply making sure the was a single copy of the module solved the problem. This can help but maybe not. I am sorry. federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] There's no certainty - only opportunity. -- V _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAklxuEgACgkQvcCgrgZGjevi9gCfdea0B5QReDf9SU7SSnsGf8BH 3hYAn0V5ISmXY8niNHka1KZQ2EOOPCqM =Qtna -----END PGP SIGNATURE-----