xxxrac / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

ValueError: unsupported pickle protocol: 4 #168

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1, 21
Environment: Arch Linux x64

What steps will reproduce the problem?
1. install repo
2. Start python 2 virtual environment
3. repo init -u git://gitorious.org/rowboat/manifest.git -m 
rowboat-jb-am335x.xml

What is the expected output? What do you see instead?

Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 117, done
remote: Finding sources: 100% (117/117)
remote: Total 2819 (delta 1496), reused 2819 (delta 1496)
Empfange Objekte: 100% (2819/2819), 2.37 MiB | 623.00 KiB/s, done.
Löse Unterschiede auf: 100% (1496/1496), done.
Von https://gerrit.googlesource.com/git-repo
 * [neuer Branch]    maint      -> origin/maint
 ...
 ...
 * [neues Tag]       v1.9.6     -> v1.9.6
Traceback (most recent call last):
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/subcmds/init.py", line 390, in Execute
    self._SyncManifest(opt)
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/subcmds/init.py", line 149, in _SyncManifest
    print('Get %s' % GitConfig.ForUser().UrlInsteadOf(opt.manifest_url),
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 219, in UrlInsteadOf
    for new_url in self.GetSubSections('url'):
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 206, in GetSubSections
    return self._sections.get(section, set())
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 230, in _sections
    for name in self._cache.keys():
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 247, in _cache
    self._cache_dict = self._Read()
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 251, in _Read
    d = self._ReadPickle()
  File "/home/roland/build/01linux3.8/rowboat-android/.repo/repo/git_config.py", line 269, in _ReadPickle
    return pickle.load(fd)
  File "/usr/lib64/python2.7/pickle.py", line 1378, in load
    return Unpickler(file).load()
  File "/usr/lib64/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib64/python2.7/pickle.py", line 886, in load_proto
    raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 4

Please provide any additional information below.

Original issue reported on code.google.com by gritzer....@gmail.com on 5 May 2014 at 9:04

GoogleCodeExporter commented 9 years ago
`rm ~/.repopickle_.gitconfig` should fix this issue.

Original comment by prou...@mozilla.com on 20 May 2014 at 12:29

GoogleCodeExporter commented 9 years ago
Wow yes did it..
Thanks a lot!!

Original comment by gritzer....@gmail.com on 20 May 2014 at 6:04

GoogleCodeExporter commented 9 years ago
I'd just like to say now the issue is fixed as pickle has been replaced with 
json.

Original comment by anthonyd...@slimroms.net on 17 Jun 2014 at 5:54