Android 10 repo init failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Android 10 repo init failed

1,263件の閲覧回数
aravinthkumarja
Senior Contributor II

I'm using Ubuntu 20.4, While doing repo init I'm getting below error.

 

Traceback (most recent call last):
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/aravinth/Project/AndroidQ/.repo/repo/subcmds/init.py", line 390, in Execute
self._SyncManifest(opt)
File "/home/aravinth/Project/AndroidQ/.repo/repo/subcmds/init.py", line 236, in _SyncManifest
m.MetaBranchSwitch(opt.manifest_branch)
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 2634, in MetaBranchSwitch
self.Sync_LocalHalf(syncbuf)
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 1170, in Sync_LocalHalf
self._InitWorkTree()
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 2224, in _InitWorkTree
_lwrite(os.path.join(dotgit, HEAD), '%s\n' % self.GetRevisionId())
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 51, in _lwrite
fd.write(content)
TypeError: a bytes-like object is required, not 'str'

 

0 件の賞賛
返信
2 返答(返信)

1,254件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Try to update the packages and redowload th repo file

0 件の賞賛
返信

1,245件の閲覧回数
aravinthkumarja
Senior Contributor II

I did the same, but I'm getting the same issue in repo init.

0 件の賞賛
返信