[Zope-dev] Bad Marshal Data

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 28 Mar 2002 10:05:46 +0000


On 27 Mar 2002 16:25:27 -0300, Leonardo Rochael Almeida
<leo@hiper.com.br> wrote:

>On Wed, 2002-03-27 at 08:19, seb bacon wrote:

>> Traceback (most recent call last):
>>   File "/usr/local/Zope-2.5.1b1-src/lib/python/OFS/Application.py", =
line
>> 531, in import_product
>>     product=3D__import__(pname, global_dict, global_dict, silly)
>> ValueError: bad marshal data

>> Deleting
>> *pyc files does not help.

That traceback definitely hints at a pyc-related problem. Are you
deleting *.pyo files too ?

Ive also seen a similar traceback on importing a product which stored
some big data structure marshalled in a string literal, and
unmarshalled it when imported. I cant remember which product it was,
and I think the traceback would different, but it might be worth
grepping for 'marshal' in the source of all your products.

>The problem you're talking about sounds a lot like the ZODB reference to
>a ceirtan product got corrupted somehow, and forcing the reload of this
>product (by changing it's syntax slightly) makes the problem go away.

Im sure thats not the case because ZODB doesnt use marshal. Only
pickle.



Toby Dickenson
tdickenson@geminidataloggers.com