|
【Linux】
PX30代码同步时异常,帮忙看看多谢
发表于 2021-9-15 10:36:30
浏览:5090
|
回复:1
打印
只看该作者
[复制链接]
楼主
本帖最后由 Cross 于 2021-9-15 10:45 编辑
SDK版本信息:px30_linux_release_20210304
1)校验MD5值正确
2)使用如下命令进行代码同步
.repo/repo/repo sync -l
.repo/repo/repo sync -c --no-tags
在执行 repo sync -c --no-tags 指令时报错,报错信息如下,帮忙看看是什么问题,多谢:
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$ repo sync -c --no-tags
Fetching project external/rk_pcba_test
Fetching project u-boot
Fetching project device/rockchip
Fetching project repo
error: Cannot fetch u-boot (AttributeError: 'str' object has no attribute 'decode')
Fetching project external/libmali
error: Cannot fetch external/rk_pcba_test (AttributeError: 'str' object has no attribute 'decode')
error: Cannot fetch device/rockchip (AttributeError: 'str' object has no attribute 'decode')
Exception in thread Thread-2:
Traceback (most recent call last):
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 188, in GetRemote
r = self._remotes[name]
KeyError: 'firefly-linux-gitlab'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 1232, in Sync_NetworkHalf
self._InitRemote()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 2350, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 809, in GetRemote
return self.config.GetRemote(name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 190, in GetRemote
r = Remote(self, name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 574, in __init__
self.url = self._Get('url')
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 716, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 131, in GetString
v = self._cache[_key(name)]
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 248, in _cache
self._cache_dict = self._Read()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 254, in _Read
d = self._ReadGit()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 299, in _ReadGit
for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401
AttributeError: 'str' object has no attribute 'decode'
Exception in thread Thread-3:
Traceback (most recent call last):
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 188, in GetRemote
r = self._remotes[name]
KeyError: 'firefly-linux-gitlab'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 1232, in Sync_NetworkHalf
self._InitRemote()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 2350, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 809, in GetRemote
return self.config.GetRemote(name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 190, in GetRemote
r = Remote(self, name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 574, in __init__
self.url = self._Get('url')
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 716, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 131, in GetString
v = self._cache[_key(name)]
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 248, in _cache
self._cache_dict = self._Read()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 254, in _Read
d = self._ReadGit()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 299, in _ReadGit
for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401
AttributeError: 'str' object has no attribute 'decode'
Exception in thread Thread-1:
Traceback (most recent call last):
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 188, in GetRemote
r = self._remotes[name]
KeyError: 'firefly-linux-gitlab'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 1232, in Sync_NetworkHalf
self._InitRemote()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 2350, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 809, in GetRemote
return self.config.GetRemote(name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 190, in GetRemote
r = Remote(self, name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 574, in __init__
self.url = self._Get('url')
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 716, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 131, in GetString
v = self._cache[_key(name)]
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 248, in _cache
self._cache_dict = self._Read()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 254, in _Read
d = self._ReadGit()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 299, in _ReadGit
for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401
AttributeError: 'str' object has no attribute 'decode'
error: Cannot fetch external/libmali (AttributeError: 'str' object has no attribute 'decode')
Exception in thread Thread-5:
Traceback (most recent call last):
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 188, in GetRemote
r = self._remotes[name]
KeyError: 'firefly-linux-gitlab'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 1232, in Sync_NetworkHalf
self._InitRemote()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 2350, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/project.py", line 809, in GetRemote
return self.config.GetRemote(name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 190, in GetRemote
r = Remote(self, name)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 574, in __init__
self.url = self._Get('url')
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 716, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 131, in GetString
v = self._cache[_key(name)]
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 248, in _cache
self._cache_dict = self._Read()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 254, in _Read
d = self._ReadGit()
File "/sdc/luochunling/px30/px30_linux_release_20210304/.repo/repo/git_config.py", line 299, in _ReadGit
for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401
AttributeError: 'str' object has no attribute 'decode'
Fetching projects: 2% (1/49)
error: Exited sync due to fetch errors
luochunling@ubuntu:/sdc/luochunling/px30/px30_linux_release_20210304$
|
|