dl9pf@elrond:/home/scratch/AGL/repobuild-fossology/build-q64-dosocs> dosocs2
Usage:
dosocs2 configtest [-f FILE]
dosocs2 dbinit [-f FILE] [--no-confirm]
dosocs2 generate [-C COMMENT] [-f FILE] [-N NAME] (PACKAGE-ID)
dosocs2 newconfig [-f FILE]
dosocs2 oneshot [-c COMMENT] [-C COMMENT] [-e VER] [-f FILE] [-n NAME] [-N NAME]
[-r] [-s SCANNERS] [-T FILE] (PATH)
dosocs2 print [-f FILE] [-T FILE] (DOC-ID)
dosocs2 scan [-c COMMENT] [-f FILE] [-n NAME] [-e VER] [-s SCANNERS] [-r] (PATH)
dosocs2 scanproject [--project-file] (PROJECT-FILE)
dosocs2 scanners [-f FILE]
dosocs2 (--help | --version)
dl9pf@elrond:/home/scratch/AGL/repobuild-fossology/build-q64-dosocs> dosocs2 --version
0.16.1
dl9pf@elrond:/home/scratch/AGL/repobuild-fossology/build-q64-dosocs> dosocs2 dbinit --no-confirm
dosocs2: preparing to initialize the database (sqlite:dosocs2: all existing data will be deleted!
dosocs2: type the word "YES" (all uppercase) to commit.
YES
dosocs2: dropping and creating all tables...ok.
dosocs2: loading fixtures...
dosocs2: annotation_types.json...ok.
dosocs2: creator_types.json...ok.
dosocs2: file_types.json...ok.
dosocs2: licenses.json...ok.
dosocs2: relationship_types.json...ok.
dosocs2: loading default creator...ok.
dosocs2: committing changes...ok.
dl9pf@elrond:/home/scratch/AGL/repobuild-fossology/build-q64-dosocs> bitbake agl-image-minimal
WARNING: libunwind-1.2.1-r0 do_spdx: Could not invoke dosocs2 oneshot Command '/usr/bin/dosocs2 oneshot /home/scratch/AGL/repobuild-fossology/build-q64-dosocs/tmp/work/corei7-64-agl-linux/libunwind/1.2.1-r0/spdx_temp/libunwind-1.2.1' returned 1:
b'Traceback (most recent call last):
File /usr/bin/dosocs2, line 9, in <module>
load_entry_point(\'dosocs2==0.16.1\', \'console_scripts\', \'dosocs2\')()
File /usr/lib/python3.4/site-packages/dosocs2/dosocs2.py, line 336, in main
package = do_scan(**kwargs)
File /usr/lib/python3.4/site-packages/dosocs2/dosocs2.py, line 127, in do_scan
package = spdxdb.register_package(conn, **kwargs)
File /usr/lib/python3.4/site-packages/dosocs2/spdxdb.py, line 139, in register_package
fileobj = register_file(conn, file_path, known_sha256=file_sha256)
File /usr/lib/python3.4/site-packages/dosocs2/spdxdb.py, line 64, in register_file
.where(db.file_types.c.name == util.spdx_filetype(path))
File /usr/lib/python3.4/site-packages/dosocs2/util.py, line 69, in spdx_filetype
if is_source(magic_string):
File /usr/lib/python3.4/site-packages/dosocs2/util.py, line 46, in is_source
b\' source\' in magic_string and b\' text\' in magic_string or
TypeError: \'in <string>\' requires string as left operand, not bytes
'
WARNING: libunwind-1.2.1-r0 do_spdx: Can't get the spdx file libunwind. Please check your dosocs2.
.