Firefly开源社区

打印 上一主题 下一主题

[Linux] PX30代码同步时异常,帮忙看看多谢

6

积分

0

威望

0

贡献

吃瓜的群众

积分
6

PX30代码同步时异常,帮忙看看多谢

发表于 2021-9-15 10:36:30      浏览:2365 | 回复: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$


回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2021-9-16 14:44:43        只看该作者  沙发
是否安装好了运行环境:
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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表