Xuan0121 发表于 2022-6-14 12:05:22

rk3588 repo linux SDK错误

本帖最后由 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
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
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
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: 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)
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
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, e))
error.GitError: config: 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)
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
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, e))
error.GitError: config: No such file or directory




是否需要安装一些基础库?报错提示没给更多的线索,所以来求助








Xuan0121 发表于 2022-6-14 14:54:27

解决了,ubuntu22.04初始不带git{:4_94:}

zcx621 发表于 2023-9-19 18:06:52

Xuan0121 发表于 2022-6-14 14:54
解决了,ubuntu22.04初始不带git

具体怎么解决呢?

thebccv 发表于 2023-10-12 18:56:50

zcx621 发表于 2023-9-19 18:06
具体怎么解决呢?

sudo apt install git
页: [1]
查看完整版本: rk3588 repo linux SDK错误