Python ValueError: bad marshal data

Today I came across a strange error, first time I encountered with such an error.

ValueError: bad marshal data

I couldn’t find the exact reason causing this error. From my view some of the compiled python(.pyc) file got corrupted. So what I did is, removed all the .pyc file from my system, as I don’t know the exact file which caused this bug.

find / -iname \*.pyc -exec rm {} \;

This command will find all the files with .pyc extension(case insensitive) and delete those files without asking for your permission each time.

About these ads

About Odol Shinu

I've completed my B Tech in Information Technology in 2010 from Government Engineering College Sreekrishnapuram Palakkad under Calicut University.

Posted on April 24, 2012, in Python and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: