尝试在构建 Fuchsia 之前设置目标,但出现以下错误。我尝试sep
通过使用将其转换为字节,b.startswith(b'sep')
然后它给出了错误。所以我只是坚持如何处理这个问题。我对python的了解为零。
prashant@prashant-Lenovo:~/fuchsia$ scripts/fx set x64
输出是:
ERROR at //build/gn/BUILD.gn:67:5: Script returned non-zero exit code.
exec_script("//build/zircon/list_source_files.py", [], "list lines")
^---------- Current dir: /home/prashant/fuchsia/out/x64/ Command: /usr/bin/env -- /home/prashant/fuchsia/build/zircon/list_source_files.py Returned 1. stderr:
Traceback (most recent call last): File "/home/prashant/fuchsia/build/zircon/list_source_files.py", line 36, in <module>
sys.exit(main()) File "/home/prashant/fuchsia/build/zircon/list_source_files.py", line 31, in main
for file in get_files(): File "/home/prashant/fuchsia/build/zircon/list_source_files.py", line 27, in get_files
return [os.path.join(ZIRCON_ROOT, file) for file in files] File "/home/prashant/fuchsia/build/zircon/list_source_files.py", line 27, in <listcomp>
return [os.path.join(ZIRCON_ROOT, file) for file in files] File "/usr/lib/python3.6/posixpath.py", line 87, in join
if b.startswith(sep): TypeError: startswith first arg must be bytes or a tuple of bytes, not str