Very strange error happened today – I was running a few python scripts I was writing when I suddenly started getting a “ValueError: bad marshal data” error .
It was due to libxml2 but I didn’t know why. I deleted the “C:\Python24\Lib\site-packages\libxml2.pyc” and the “C:\Python24\Lib\site-packages\libxml2.pyo” file which solved the problem. No idea why as the error message means nothing to me.