[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 07:33:41 UTC 2014


Package: ubuntu-dev-tools
Version: 0.143


I was seeing this error when trying to run syncpackage:


$ syncpackage -d sid -r trusty-proposed resiprocate
Traceback (most recent call last):
  File "/usr/bin/syncpackage", line 37, in <module>
    from ubuntutools.archive import (DebianSourcePackage,
UbuntuSourcePackage,
  File "/usr/lib/python2.7/dist-packages/ubuntutools/archive.py", line
34, in <module>
    import urllib2
  File "/usr/lib/python2.7/urllib2.py", line 94, in <module>
    import httplib
  File "/usr/lib/python2.7/httplib.py", line 79, in <module>
    import mimetools
  File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
    import rfc822
ValueError: bad marshal data (string ref out of range)



I refreshed my Python install with this command:

   # apt-get install --reinstall python2.7

and then syncpackage was working again.


Google also reveals other people have had this problem with import httplib:

   https://groups.google.com/forum/#!topic/weewx-user/u7RdWzgwETo

so maybe it needs further analysis.



More information about the ubuntu-dev-team mailing list