You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The license references table in the HTML output does not get created with the current version of scancode (32.3.1).
The table was previously (31.2.6) called licenses and was located at the very bottom the static HTML output, see image above.
It summarized all licenses found in the scanned project in one table.
Investigation of the issue revealed this is due to an empty license_references list given to the template:
Evidence suggests that this is broken ever since 32.0.0, specifically PR #3275, where the source of the license references was changed.
I was able to reproduce the issue on 32.0.1 and 32.3.1 alike. 31.2.6 worked fine, all installed via pip in a miniconda venv.
32.0.0 was not tested directly due to not running out of the box.
Unfortunately I was not able to follow the codebase rabbit hole, as its attributes seem to get constructed during runtime.
However, I did create a POC, where I reverted the source of license references the legacy implementation: html-license-ref-table-poc
This should show that the html template is not to blame.
Thanks in advance for taking the time Scancode Team.
I also tried to output directly to html instead of json, but the license_references list was still empty.
I really hope I did not miss any obvious CLI arguments to fix the issue.
As test input I used paho.mqtt.python at current master (d45de37).
I do have output htmls for all versions mentioned above and my POC, but github does not allow upload of html files.
Please request the html files, if you need them, then I will upload them somewhere and share them via link.
System configuration
OS: Linux, but the bug was reported to us by users running Windows iirc
scancode-toolkit version: 32.3.1
installation method: pip in venv and later miniconda venv
The text was updated successfully, but these errors were encountered:
Description
The license references table in the HTML output does not get created with the current version of scancode (32.3.1).
The table was previously (31.2.6) called licenses and was located at the very bottom the static HTML output, see image above.
It summarized all licenses found in the scanned project in one table.
Investigation of the issue revealed this is due to an empty
license_references
list given to the template:scancode-toolkit/src/formattedcode/output_html.py
Line 248 in b0aff52
The list is obtained from
codebase.attributes.license_references
:scancode-toolkit/src/formattedcode/output_html.py
Line 84 in b0aff52
Evidence suggests that this is broken ever since 32.0.0, specifically PR #3275, where the source of the license references was changed.
I was able to reproduce the issue on 32.0.1 and 32.3.1 alike. 31.2.6 worked fine, all installed via pip in a miniconda venv.
32.0.0 was not tested directly due to not running out of the box.
Unfortunately I was not able to follow the
codebase
rabbit hole, as its attributes seem to get constructed during runtime.However, I did create a POC, where I reverted the source of license references the legacy implementation: html-license-ref-table-poc
This should show that the html template is not to blame.
Thanks in advance for taking the time Scancode Team.
Kind regards
Jens Keim (JJ)
FOSS Office
HELLA Aglaia
How To Reproduce
Open
result-scancode.html
and observe.I also tried to output directly to html instead of json, but the
license_references
list was still empty.I really hope I did not miss any obvious CLI arguments to fix the issue.
As test input I used paho.mqtt.python at current master (d45de37).
I do have output htmls for all versions mentioned above and my POC, but github does not allow upload of html files.
Please request the html files, if you need them, then I will upload them somewhere and share them via link.
System configuration
The text was updated successfully, but these errors were encountered: