durusmail: durus-users: Re: Pickle error - pytz
Pickle error - pytz
2005-01-01
Re: Pickle error - pytz
2005-01-01
2005-01-01
2005-01-01
2005-01-01
Re: Pickle error - pytz
Michael Watkins
2005-01-01
> Can you suggest where I might continue digging base on this:
>
> ->> commit()
> Traceback (most recent call last):
>   File "", line 2, in ?
>   File "/usr/local/lib/python2.4/site-packages/durus/connection.py", line
> 227, in commit
>     data, refs = writer.get_state(obj)
>   File "/usr/local/lib/python2.4/site-packages/durus/serialize.py", line
> 108, in get_state
>     self.pickler.dump(obj.__getstate__())
> PicklingError: Can't pickle : it's not
> the same object as sous.pytz.zoneinfo.UTC.UTC

PS: I did a test using the example implementation of tzinfo class in
Python documentation and had no issues; just wondering where best to start
looking for sources of pickle problems and whether there is anything
specific Durus is doing or requires that would cause one to look in a
given area first.

PSPS: Different although related topic, have you folks had any thoughts of
making Dulcina objects use tzinfo aware dates as a default? a now() that
returned a datetime with tzinfo filled in - even if its merely US/Eastern
- would make timezone conversion for other apps and zones relatively
trivial then.


reply