dl9pf / meta-spdxscanner

SPDX scanner support
MIT License
9 stars 10 forks source link

[Question] Using fossology #19

Open soimsoim opened 4 years ago

soimsoim commented 4 years ago
  1. INHERIT += "fossology-rest" Running the analysis with fossology-rest, the build continues with the following warning message: It seems that I'm not getting spdx results.

    WARNING: busybox-1.30.1-r0 do_spdx: license info not complete, try agin.

I checked the fossology website and the job completed and also I can download the spdx results. Why can't I get a result from do_spdx?

  1. INHERIT += "fossdriver-host" I also ran fossology with docker on the build server. So when I analyzed the 'fossdriver-host', I got an error that fossdriver could not be found. How should I solve this issue?

NOTE: run fossdriver ...... ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: 0002:do_spdx(d) 0003: File: '/oe-core/meta-spdxscanner/classes/fossdriver-host.bbclass', lineno: 129, function: do_spdx 0125: bb.note(' run fossdriver ...... ') 0126: if not os.path.isfile(tar_name): 0127: bb.warn(info['pn'] + "has no source, do nothing") 0128: return 0129: invoke_fossdriver(tar_name,sstatefile) 0130: if get_cached_spdx(sstatefile) != None: 0131: write_cached_spdx( info,sstatefile,cur_ver_code ) 0132: ## CREATE MANIFEST(write to outfile ) 0133: create_manifest(info,sstatefile) File: '/oe-core/meta-spdxscanner/classes/fossdriver-host.bbclass', lineno: 154, function: invoke_fossdriver 0150: 0151: (work_dir, tar_file) = os.path.split(tar_file) 0152: os.chdir(work_dir) 0153: *** 0154: from fossdriver.config import FossConfig 0155: from fossdriver.server import FossServer 0156: from fossdriver.tasks import (CreateFolder, Upload, Scanners, Copyright, Reuse, BulkTextMatch, SPDXTV) 0157: if 'http_proxy' in os.environ: 0158: del os.environ['http_proxy'] Exception: ModuleNotFoundError: No module named 'fossdriver'

ERROR:BitBake.Util:Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: 0002:do_spdx(d) 0003: File: '/oe-core/meta-spdxscanner/classes/fossdriver-host.bbclass', lineno: 129, function: do_spdx 0125: bb.note(' run fossdriver ...... ') 0126: if not os.path.isfile(tar_name): 0127: bb.warn(info['pn'] + "has no source, do nothing") 0128: return 0129: invoke_fossdriver(tar_name,sstatefile) 0130: if get_cached_spdx(sstatefile) != None: 0131: write_cached_spdx( info,sstatefile,cur_ver_code ) 0132: ## CREATE MANIFEST(write to outfile ) 0133: create_manifest(info,sstatefile) File: '/oe-core/meta-spdxscanner/classes/fossdriver-host.bbclass', lineno: 154, function: invoke_fossdriver 0150: 0151: (work_dir, tar_file) = os.path.split(tar_file) 0152: os.chdir(work_dir) 0153: *** 0154: from fossdriver.config import FossConfig 0155: from fossdriver.server import FossServer 0156: from fossdriver.tasks import (CreateFolder, Upload, Scanners, Copyright, Reuse, BulkTextMatch, SPDXTV) 0157: if 'http_proxy' in os.environ: 0158: del os.environ['http_proxy'] Exception: ModuleNotFoundError: No module named 'fossdriver'

ERROR: No module named 'fossdriver' ERROR:BitBake.Build:No module named 'fossdriver' DEBUG: Python function do_spdx finished DEBUG:BitBake.Main:Python function do_spdx finished ERROR: Function failed: do_spdx ERROR:BitBake.Build:Function failed: do_spdx

Thanks & Regards, Soim

chaithubk commented 4 years ago

@soimsoim are you able to solve this error ?