Firefly开源社区

打印 上一主题 下一主题

[技术讨论] rk3588 repo linux SDK错误

20

积分

0

威望

0

贡献

技术小白

积分
20

rk3588 repo linux SDK错误

发表于 2022-6-14 12:05:22      浏览:5863 | 回复:3        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
本帖最后由 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




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








log.zip

2.18 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

20

积分

0

威望

0

贡献

技术小白

积分
20
发表于 2022-6-14 14:54:27        只看该作者  沙发
解决了,ubuntu22.04初始不带git
回复

使用道具 举报

40

积分

0

威望

0

贡献

技术小白

积分
40
发表于 2023-9-19 18:06:52        只看该作者  板凳
Xuan0121 发表于 2022-6-14 14:54
解决了,ubuntu22.04初始不带git

具体怎么解决呢?
回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2023-10-12 18:56:50        只看该作者  地板
zcx621 发表于 2023-9-19 18:06
具体怎么解决呢?

sudo apt install git
回复

使用道具 举报

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

本版积分规则

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