Firefly开源社区

打印 上一主题 下一主题

[Linux] 同步Core-3568J源码报错

50

积分

0

威望

0

贡献

技术小白

积分
50

同步Core-3568J源码报错

发表于 2022-12-9 14:58:20      浏览:7031 | 回复:6        打印      只看该作者   [复制链接] 楼主
1.编译服务器为Ubuntu 18.04
cat /proc/version
Linux version 4.15.0-196-generic (buildd@lcy02-amd64-018) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #207-Ubuntu SMP Thu Oct 27 21:24:58 UTC 2022


2.按照如下指导安装Core-3568J SDK,在同步代码时报错
1. 编译环境搭建 — Firefly Wiki (t-firefly.com)

也就是执行如下命令报错,详见错误log
.repo/repo/repo sync -c --no-tags
/rk356x_linux_release_20211019$ .repo/repo/repo sync -c --no-tagswarning: Python 3 support is currently experimental. YMMV.Please use Python 2.6 - 2.7 instead./home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses  import impFetching project external/quectel-cmFetching project buildrootFetching project external/rktoolkitFetching project external/chromiumerror: Cannot fetch external/rktoolkit (AttributeError: 'str' object has no attribute 'decode')Fetching project external/libmaliException in thread Thread-3:Traceback (most recent call last):  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote    r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner    self.run()  File "/usr/local/lib/python3.7/threading.py", line 870, in run    self._target(*self._args, **self._kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList    success = self._FetchHelper(opt, project, *args, **kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper    prune=opt.prune)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf    self._InitRemote()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote    remote = self.GetRemote(self.remote.name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote    return self.config.GetRemote(name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote    r = Remote(self, name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__    self.url = self._Get('url')  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get    return self._config.GetString(key, all_keys = all_keys)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString    v = self._cache[_key(name)]  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache    self._cache_dict = self._Read()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read    d = self._ReadGit()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit    for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch buildroot (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-2:Traceback (most recent call last):  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote    r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner    self.run()  File "/usr/local/lib/python3.7/threading.py", line 870, in run    self._target(*self._args, **self._kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList    success = self._FetchHelper(opt, project, *args, **kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper    prune=opt.prune)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf    self._InitRemote()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote    remote = self.GetRemote(self.remote.name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote    return self.config.GetRemote(name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote    r = Remote(self, name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__    self.url = self._Get('url')  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get    return self._config.GetString(key, all_keys = all_keys)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString    v = self._cache[_key(name)]  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache    self._cache_dict = self._Read()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read    d = self._ReadGit()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit    for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch external/chromium (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-4:Traceback (most recent call last):  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote    r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner    self.run()  File "/usr/local/lib/python3.7/threading.py", line 870, in run    self._target(*self._args, **self._kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList    success = self._FetchHelper(opt, project, *args, **kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper    prune=opt.prune)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf    self._InitRemote()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote    remote = self.GetRemote(self.remote.name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote    return self.config.GetRemote(name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote    r = Remote(self, name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__    self.url = self._Get('url')  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get    return self._config.GetString(key, all_keys = all_keys)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString    v = self._cache[_key(name)]  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache    self._cache_dict = self._Read()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read    d = self._ReadGit()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit    for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401AttributeError: '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 "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote    r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner    self.run()  File "/usr/local/lib/python3.7/threading.py", line 870, in run    self._target(*self._args, **self._kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList    success = self._FetchHelper(opt, project, *args, **kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper    prune=opt.prune)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf    self._InitRemote()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote    remote = self.GetRemote(self.remote.name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote    return self.config.GetRemote(name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote    r = Remote(self, name)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__    self.url = self._Get('url')  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get    return self._config.GetString(key, all_keys = all_keys)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString    v = self._cache[_key(name)]  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache    self._cache_dict = self._Read()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read    d = self._ReadGit()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit    for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch external/quectel-cm (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-1:Traceback (most recent call last):  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner    self.run()  File "/usr/local/lib/python3.7/threading.py", line 870, in run    self._target(*self._args, **self._kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList    success = self._FetchHelper(opt, project, *args, **kwargs)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper    prune=opt.prune)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1229, in Sync_NetworkHalf    self._InitGitDir(force_sync=force_sync)  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2298, in _InitGitDir    self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 158, in SetString    old = self._cache[key]  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache    self._cache_dict = self._Read()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read    d = self._ReadGit()  File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit    for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Exited sync due to fetch errors

回复

使用道具 举报

50

积分

0

威望

0

贡献

技术小白

积分
50
发表于 2022-12-9 15:02:22        只看该作者  沙发
大概半年前 在另外一个编译服务器上 安装该SDK是成功的
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2022-12-9 16:15:12        只看该作者  板凳
把你的python默认环境改到python2试试,就是改个链接
/usr/bin/python --> python2.7
回复

使用道具 举报

50

积分

0

威望

0

贡献

技术小白

积分
50
发表于 2022-12-9 16:17:52        只看该作者  地板
lijianjun@temi:~/firefly/rk3568_prj/rk356x_linux_release_20211019$ ls /usr/bin/python -al
lrwxrwxrwx 1 root root 9 Apr 16  2018 /usr/bin/python -> python2.7

默认使用的就是2.7。
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2022-12-9 16:19:56        只看该作者  5#
进入.repo/repo执行git pull
然后再返回,执行同步操作
回复

使用道具 举报

50

积分

0

威望

0

贡献

技术小白

积分
50
发表于 2022-12-9 16:23:09        只看该作者  6#
好像可以了,继续开始下载代码了,多谢哈
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2022-12-9 16:24:50        只看该作者  7#
xalijianjun 发表于 2022-12-9 16:23
好像可以了,继续开始下载代码了,多谢哈

{:4_91:}
回复

使用道具 举报

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

本版积分规则

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