How to fix Python ValueError:bad marshal data?

If you get that error, the compiled version of the Python module (the .pyc file) is corrupt probably. Gentoo Linux provides python-updater, but in Debian the easier way to fix: just delete the .pyc file. If you don’t know the pyc, just delete all of them (as root):

find /usr -name '*.pyc' -delete

Leave a Comment