When using meta-spdxscanner layer on Scarthgap branch there is an error:

The error reported is this:
ERROR: fuse3-3.16.2-r0 do_get_report: Could not invoke scancode Command 
'scancode -lpci --max-in-memory 0 --processes 24 --spdx-tv 
/home/darko/Project/tmp/os/build/tmp/work/thunderx-belden-linux/fuse3/3.16.2/spdx_sstate_dir/aarch64-belden-linux/fuse3-3.16.2-r0/fuse3-3.16.2.spdx
 
/home/darko/Project/tmp/os/build/tmp/work/thunderx-belden-linux/fuse3/3.16.2/spdx_temp/'
 returned 1:
b'Traceback (most recent call last):\n  File 
"/home/darko/Project/tmp/os/build/tmp/hosttools/scancode", line 5, in 
<module>\n    from scancode.cli import scancode\nModuleNotFoundError: No module 
named \'scancode\'\n'

It is important to point out that previously, when using all layers on 
kirkstone branch I didn't see this problem.

The command I use:
bitbake fuse3 -f -c spdx

Changes to local.conf/bblayers.conf:
I have added this to local.conf
INHERIT += "scancode-tk"
Also added meta-spdxscanner to bblayers.conf


When I run locally "scancode -help" it doesn't show any errors.

In order too further debug I tried this command:
bitbake fuse3 -c devshell
and in the shell it opens, when running scancode command, the same error is 
reported.

I am running ubuntu 24.04, however the same issue has been reported on earlier 
LTS version of ubuntu (22.04).

I have this version of scancode installed:
scancode --version
ScanCode version: 32.2.1
ScanCode Output Format version: 3.2.0
SPDX License list version: 3.24

Has anybody seen this error, any idea how to fix it?

**********************************************************************
DISCLAIMER:
Privileged and/or Confidential information may be contained in this message. If 
you are not the addressee of this message, you may not copy, use or deliver 
this message to anyone. In such event, you should destroy the message and 
kindly notify the sender by reply e-mail. It is understood that opinions or 
conclusions that do not relate to the official business of the company are 
neither given nor endorsed by the company. Thank You.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63928): https://lists.yoctoproject.org/g/yocto/message/63928
Mute This Topic: https://lists.yoctoproject.org/mt/108777538/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to