本帖最后由 Xuan0121 于 2022-6-14 12:07 编辑 系统版本:Ubuntu22.04 描述:在网盘下载了rk3588rk3588_repo_sdk_v0.1.0a.7z,移动到虚拟机中解压后.repo/repo/repo sync -l操作,一开始使用系统自带python3环境提示: warning: Python 3 support is currently experimental. YMMV. Please use Python 2.6 - 2.7 instead. /home/rk3588/Workspace/rk3588/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp Traceback (most recent call last): File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 198, in GetBranch b = self._branches[name] KeyError: 'default' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 188, in GetRemote r = self._remotes[name] KeyError: 'origin' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] KeyError: 'remote.origin.pushurl' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/rk3588/Workspace/rk3588/.repo/repo/git_command.py", line 231, in __init__ p = subprocess.Popen(command, File "/root/anaconda3/lib/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/root/anaconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'git' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 531, in <module> _Main(sys.argv[1:]) File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 507, in _Main result = repo._Run(argv) or 0 File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 158, in _Run copts, cargs = cmd.OptionParser.parse_args(argv) File "/home/rk3588/Workspace/rk3588/.repo/repo/command.py", line 67, in OptionParser self._Options(self._optparse) File "/home/rk3588/Workspace/rk3588/.repo/repo/subcmds/sync.py", line 189, in _Options self.jobs = self.manifest.default.sync_j File "/home/rk3588/Workspace/rk3588/.repo/repo/manifest_xml.py", line 360, in default self._Load() File "/home/rk3588/Workspace/rk3588/.repo/repo/manifest_xml.py", line 400, in _Load b = m.GetBranch(m.CurrentBranch).merge File "/home/rk3588/Workspace/rk3588/.repo/repo/project.py", line 814, in GetBranch return self.config.GetBranch(name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 200, in GetBranch b = Branch(self, name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 729, in __init__ self.remote = self._config.GetRemote(r) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 575, in __init__ self.pushUrl = self._Get('pushurl') File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 134, in GetString return self.defaults.GetString(name, all_keys = all_keys) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 296, in _ReadGit d = self._do('--null', '--list') File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 318, in _do p = GitCommand(None, File "/home/rk3588/Workspace/rk3588/.repo/repo/git_command.py", line 238, in __init__ raise GitError('%s: %s' % (command[1], e)) error.GitError: config: [Errno 2] No such file or directory: 'git' 遂使用anaconda3创建python2.7.17环境,未安装第三方库,提示如下: File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 531, in <module> _Main(sys.argv[1:]) File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 507, in _Main result = repo._Run(argv) or 0 File "/home/rk3588/Workspace/rk3588/.repo/repo/main.py", line 158, in _Run copts, cargs = cmd.OptionParser.parse_args(argv) File "/home/rk3588/Workspace/rk3588/.repo/repo/command.py", line 67, in OptionParser self._Options(self._optparse) File "/home/rk3588/Workspace/rk3588/.repo/repo/subcmds/sync.py", line 189, in _Options self.jobs = self.manifest.default.sync_j File "/home/rk3588/Workspace/rk3588/.repo/repo/manifest_xml.py", line 360, in default self._Load() File "/home/rk3588/Workspace/rk3588/.repo/repo/manifest_xml.py", line 400, in _Load b = m.GetBranch(m.CurrentBranch).merge File "/home/rk3588/Workspace/rk3588/.repo/repo/project.py", line 814, in GetBranch return self.config.GetBranch(name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 200, in GetBranch b = Branch(self, name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 729, in __init__ self.remote = self._config.GetRemote(r) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 575, in __init__ self.pushUrl = self._Get('pushurl') File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 134, in GetString return self.defaults.GetString(name, all_keys = all_keys) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 296, in _ReadGit d = self._do('--null', '--list') File "/home/rk3588/Workspace/rk3588/.repo/repo/git_config.py", line 321, in _do capture_stderr = True) File "/home/rk3588/Workspace/rk3588/.repo/repo/git_command.py", line 238, in __init__ raise GitError('%s: %s' % (command[1], e)) error.GitError: config: [Errno 2] No such file or directory 是否需要安装一些基础库?报错提示没给更多的线索,所以来求助 |
-
2.18 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1