durusmail: durus-users: apparently random bug in durus
apparently random bug in durus
2010-06-21
2010-06-21
2010-06-21
2010-06-22
2010-06-22
2010-06-25
2010-06-25
2010-06-25
2010-06-25
2010-06-28
2010-06-28
2010-06-29
Python 2.7+ (Re: apparently random bug in durus)
2010-06-29
2010-06-28
2010-06-29
2010-06-29
2010-06-29
2010-06-29
2010-06-29
2010-06-30
2010-06-30
2010-06-30
2010-06-30
2010-06-30
2010-07-01
apparently random bug in durus
Neil Schemenauer
2010-06-28
Binger David  wrote:
>
> On Jun 25, 2010, at 4:30 PM, Alex Hall wrote:
>> Repr(data): '\x80\x02cdurus.durus.persistent_dict\nPersistentDict\nq\x01.x\x9
c\xb5Z}`\\E\x11O\x8e\x92\xa6I\x9a\xb6iB\xcbw
>>
>> ...
>
> The string should start with
'\x80\x02cdurus.persistent_dict\nPersistentDict\nq'
> not
> '\x80\x02cdurus.durus.persistent_dict\nPersistentDict\nq'.
>
> I think this is the problem.  I'm not sure how it originates.

Definitely a problem.  I wonder if somewhere the Connection class
got passed a bad 'root_class' argument.  I can't see any way Durus
itself can create such a thing.

As a hack so you can load your data, add this early in the startup
(e.g. before Durus is imported):

    import sys
    import durus
    durus.durus = durus
    sys.modules['durus.durus'] = durus

After that you should be able to execute:

    import durus.durus.persistent_dict

without errors.

Regards,

  Neil

reply