Firefly开源社区

标题: PX30代码同步时异常,帮忙看看多谢 [打印本页]

作者: Cross    时间: 2021-9-15 10:36
标题: PX30代码同步时异常,帮忙看看多谢
本帖最后由 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$



作者: 时间的蝴蝶    时间: 2021-9-16 14:44
是否安装好了运行环境:
sudo apt-get install repo git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler \
gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools \
linaro-image-tools gcc-4.8-multilib-arm-linux-gnueabihf gcc-arm-linux-gnueabihf libssl-dev \
gcc-aarch64-linux-gnu g+conf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make \
binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget \
libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client \
subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev texinfo \
liblz4-tool genext2fs lib32stdc++6





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1