同步Core-3568J源码报错
1.编译服务器为Ubuntu 18.04cat /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 usesimport 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._remotesKeyError: '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._cacheFile "/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._remotesKeyError: '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._cacheFile "/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._remotesKeyError: '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._cacheFile "/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._remotesKeyError: '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._cacheFile "/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._cacheFile "/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
大概半年前 在另外一个编译服务器上 安装该SDK是成功的 把你的python默认环境改到python2试试,就是改个链接
/usr/bin/python --> python2.7 lijianjun@temi:~/firefly/rk3568_prj/rk356x_linux_release_20211019$ ls /usr/bin/python -al
lrwxrwxrwx 1 root root 9 Apr 162018 /usr/bin/python -> python2.7
默认使用的就是2.7。 进入.repo/repo执行git pull
然后再返回,执行同步操作 好像可以了,继续开始下载代码了,多谢哈 xalijianjun 发表于 2022-12-9 16:23
好像可以了,继续开始下载代码了,多谢哈
{:4_91:}
页:
[1]