You are not logged in.

#1 2015-01-03 17:36:16

LeonardK
Member
From: Berlin, Germany
Registered: 2014-07-31
Posts: 591

[SOLVED] Symbolic links for python (v2) modules

I was blind, sry


To solve the issue:
https://code.google.com/p/git-repo/issues/detail?id=168

rm ~/.repopickle_.gitconfig

Didn't work before for me as I made a dumb fail...
------

Hello,

I tried to understand and follow the wiki (https://wiki.archlinux.org/index.php/an … nvironment) about building Android as good as I could.
Everything works till the part with setting the virtualenv2 for using python 2 (python -V gives v2.7.9 back). I understood everything till there, and even after that. Sadly it still doesn't work sad
The first problem accuring is that when issueing

ln -s /usr/lib/python2.7/* /Data/Android_Build/venv/lib/python2.7/ 

I get "file exists" for every existing file. Is that wanted as it only should "add" modules not being in 'android/venv/lib/python-2.7/' ? After that I tried issueing 'repo init -u' but sadly this just gives me a python error.

$ repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0
Traceback (most recent call last):
  File "/home/leonard/android/system/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
  File "/home/leonard/android/system/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
  File "/home/leonard/android/system/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/leonard/android/system/.repo/repo/subcmds/init.py", line 390, in Execute
    self._SyncManifest(opt)
  File "/home/leonard/android/system/.repo/repo/subcmds/init.py", line 149, in _SyncManifest
    print('Get %s' % GitConfig.ForUser().UrlInsteadOf(opt.manifest_url),
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 219, in UrlInsteadOf
    for new_url in self.GetSubSections('url'):
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 206, in GetSubSections
    return self._sections.get(section, set())
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 230, in _sections
    for name in self._cache.keys():
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 247, in _cache
    self._cache_dict = self._Read()
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 251, in _Read
    d = self._ReadPickle()
  File "/home/leonard/android/system/.repo/repo/git_config.py", line 269, in _ReadPickle
    return pickle.load(fd)
  File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 1378, in load
    return Unpickler(file).load()
  File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 886, in load_proto
    raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 4

Last edited by LeonardK (2015-01-03 17:40:18)


It's 106 miles to Chicago we got a full tank of gas, half a pack of cigarettes, its dark and we're wearing sunglasses.

Offline

Board footer

Powered by FluxBB