Yocto4.3 occur "Logging error" when execute repo sync

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

Yocto4.3 occur "Logging error" when execute repo sync

477件の閲覧回数
charleshuang
Senior Contributor II

Hi NXP Team,

As title, the error log are as below.

Could you provide any advise for us ?

Thank you.

 

" Fetching: 50% (8/16) 0:58 | 2 jobs | 0:26 meta-virtualization @ sources/meta-virtualization--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.8/logging/__init__.py", line 1085, in emit
    msg = self.format(record)
  File "/usr/lib/python3.8/logging/__init__.py", line 929, in format
    return fmt.format(record)
  File "/home/adv/adv-release-bsp/.repo/repo/repo_logging.py", line 62, in format
    return msg if not colorer else colorer(msg)
  File "/home/adv/adv-release-bsp/.repo/repo/color.py", line 167, in f
    output = fmt % args
TypeError: not enough arguments for format string
Call stack:
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 874, in <module>
    _Main(sys.argv[1:])
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 850, in _Main
    result = repo._Run(name, gopts, argv) or 0
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 294, in _Run
    result = run()
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 275, in <lambda>
    lambda: self._RunLong(name, gopts, argv, git_trace2_event_log) or 0
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 442, in _RunLong
    execute_command()
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 408, in execute_command
    execute_command_helper()
  File "/home/adv/adv-release-bsp/.repo/repo/main.py", line 374, in execute_command_helper
    result = cmd.Execute(copts, cargs)
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 1688, in Execute
    self._ExecuteHelper(opt, args, errors)
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 1796, in _ExecuteHelper
    result = self._FetchMain(
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 959, in _FetchMain
    result = self._Fetch(to_fetch, opt, err_event, ssh_proxy, errors)
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 906, in _Fetch
    with multiprocessing.Pool(
  File "/usr/lib/python3.8/multiprocessing/context.py", line 119, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild,
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 212, in __init__
    self._repopulate_pool()
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 303, in _repopulate_pool
    return self._repopulate_pool_static(self._ctx, self.Process,
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 326, in _repopulate_pool_static
    w.start()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.8/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75, in _launch
    code = process_obj._bootstrap(parent_sentinel=child_r)
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 713, in _FetchProjectList
    return [self._FetchOne(opt, x) for x in projects]
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 713, in <listcomp>
    return [self._FetchOne(opt, x) for x in projects]
  File "/home/adv/adv-release-bsp/.repo/repo/subcmds/sync.py", line 733, in _FetchOne
    sync_result = project.Sync_NetworkHalf(
  File "/home/adv/adv-release-bsp/.repo/repo/project.py", line 1361, in Sync_NetworkHalf
    and self._ApplyCloneBundle(
  File "/home/adv/adv-release-bsp/.repo/repo/project.py", line 2753, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(
  File "/home/adv/adv-release-bsp/.repo/repo/project.py", line 2837, in _FetchBundle
    logger.error("%s", output)  "

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

330件の閲覧回数
Shinici
Contributor I

I have same issue. Currently, I don't know how to fix this issue

0 件の賞賛
返信

455件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

My suggestions to follow up the section Host Setup of Yocto User Guide.

-Host package to align with the version of python.

-To delete the existed ".repo" utility and setting it up again.

-The version of Host Machine.

IMX_YOCTO_PROJECT_USERS_GUIDE.pdf 

 

Regards

Harvey

 

0 件の賞賛
返信