Errno 22 Error while trying to build an image / try to fetch an package

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Errno 22 Error while trying to build an image / try to fetch an package

496 次查看
Paul_Walker
Contributor I

I am getting an following error while trying to build any image or bitbake any package (eg: bitbake core-image-minimal or bitbake u-boot-imx ) , i am getting the following error:

 

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_create_and_sign_package(d)
0003:
File: '/media/compute1/7C261D53261D0FAE/Advantech/5722_6.6_scarthgap/adv-release-bsp/sources/poky/meta/classes-global/sstate.bbclass', lineno: 889, function: sstate_create_and_sign_package
0885: # be updated.
0886: update_file(tmp_pkg, sstate_pkg, force=True)
0887: else:
0888: from tempfile import NamedTemporaryFile
*** 0889: with NamedTemporaryFile(prefix=sstate_pkg.name, dir=sstate_pkg.parent) as tmp_pkg_fd:
0890: tmp_pkg = tmp_pkg_fd.name
0891: d.setVar("TMP_SSTATE_PKG", str(tmp_pkg))
0892: bb.build.exec_func('sstate_archive_package',d)
0893: update_file(tmp_pkg, sstate_pkg)
File: '/usr/lib/python3.10/tempfile.py', lineno: 714, function: NamedTemporaryFile
0710: nonlocal name
0711: fd, name = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
0712: return fd
0713: try:
*** 0714: file = _io.open(dir, mode, buffering=buffering,
0715: newline=newline, encoding=encoding, errors=errors,
0716: opener=opener)
0717: try:
0718: raw = getattr(file, 'buffer', file)
File: '/usr/lib/python3.10/tempfile.py', lineno: 711, function: opener
0707:
0708: name = None
0709: def opener(*args):
0710: nonlocal name
*** 0711: fd, name = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
0712: return fd
0713: try:
0714: file = _io.open(dir, mode, buffering=buffering,
0715: newline=newline, encoding=encoding, errors=errors,
File: '/usr/lib/python3.10/tempfile.py', lineno: 395, function: _mkstemp_inner
0391: name = next(names)
0392: file = _os.path.join(dir, pre + name + suf)
0393: _sys.audit("tempfile.mkstemp", file)
0394: try:
*** 0395: fd = _os.open(file, flags, 0o600)
0396: except FileExistsError:
0397: continue # try again
0398: except PermissionError:
0399: # This exception is thrown when a directory with the chosen name
Exception: OSError: [Errno 22] Invalid argument: '

 

According to my assumption it is Python related Errno 22 error.

To give a background- the storage partion is shared between the Ubuntu host machine and windows (dual boot). Is this creating any issue?

If yes, how can I remove the windows partion without disturbing the Ubuntu partion, please suggest

python errno 22 errorpython errno 22 error

 

iMX95  @Harvey021  @JorgeCas @Chavira @Bio_TICFSL 

0 项奖励
回复
1 回复

469 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

This error is due to missing package in yocto, so please try to download all the ubuntu package and erase everything and rebuild the image.

 

https://docs.yoctoproject.org/3.2.3/ref-manual/ref-system-requirements.html

 

Regards

0 项奖励
回复