openFyde / overlay-amd64-openfyde

openFyde supported hardware "x86 PC with Intel HD graphics" build artefacts and pre-built image releases.
https://openfyde.io
BSD 3-Clause "New" or "Revised" License
114 stars 12 forks source link

构建openfyde时,在repo init 这一步报错 #9

Closed qian0jiang closed 1 year ago

qian0jiang commented 1 year ago

按照 getting-started 文档一步步来,到repo init这一步的时候报错了: File "/home/jiang/r102/.repo/repo/main.py", line 79 file=sys.stderr) 我看了下报错的位置: if sys.version_info.major < 3: print('repo: error: Python 2 is no longer supported; ' 'Please upgrade to Python {}.{}+.'.format(*MIN_PYTHON_VERSION_SOFT), file=sys.stderr) sys.exit(1) 按理说我安装的是python3,应该不会进入这个if才对,是我安装的python3环境不对么? python3 -V Python 3.6.9

Damenly commented 1 year ago

看下 /usr/bin/env python3 以及 which repo

qian0jiang commented 1 year ago

看下 /usr/bin/env python3 以及 which repo

/usr/bin/env python3 Python 3.6.9 (default, Jun 29 2022, 11:45:57) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

repo init命令: repo init -u https://gerrit.openfyde.cn/chromium.googlesource.com/chromiumos/manifest -b release-R102-14695.B --repo-url=https://gerrit.openfyde.cn/chromium.googlesource.com/external/repo

Damenly commented 1 year ago

看下which reporepo --version

qian0jiang commented 1 year ago

which repo /snap/bin/repo

~/r102$ repo --version File "/home/jiang/r102/.repo/repo/main.py", line 79 file=sys.stderr) ^ SyntaxError: invalid syntax 是我安装的repo不对么

Damenly commented 1 year ago

是的,你按照教程上的用 https://github.com/openFyde/getting-started#install-google-depot_tools 的repo 应该就可以了。

qian0jiang commented 1 year ago

好的,非常感谢