[ubuntu-dev] Bug#744185: refuses to run: ValueError: bad marshal data (string ref out of range)

Daniel Pocock daniel at pocock.pro
Fri Apr 11 08:02:21 UTC 2014


On 11/04/14 09:57, Stefano Rivera wrote:
> Hi Daniel (2014.04.11_09:33:41_+0200)
>>   File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
>>     import rfc822
>> ValueError: bad marshal data (string ref out of range)
> Looks like a broken .pyc file. Try "python -c 'import rfc822'" as root?

I have already fixed it using

   apt-get install --reinstall python2.7

How can the pyc file be broken though?  While syncpackage is just a
development tool, there are many administration tools and even server
processes written in Python these days and they can't just
intermittently break like this.



More information about the ubuntu-dev-team mailing list