Skip to content

Error: 'ScannedResource' object has no attribute 'holders' #3109

Description

@bwjohnson-ss

Description

Running scancode with --package and --summary options produces the following error:

Scanning done.
Some files failed to scan properly:
ERROR: failed to run post-scan plugin: summary:
Traceback (most recent call last):
  File "/opt/scancode-toolkit-v31.1.1/venv/lib/python3.9/site-packages/scancode/cli.py", line 1077, in run_codebase_plugins
    plugin.process_codebase(codebase, **kwargs)
  File "/opt/scancode-toolkit-v31.1.1/venv/lib/python3.9/site-packages/summarycode/summarizer.py", line 102, in process_codebase
    ) = get_origin_info_from_top_level_packages(
  File "/opt/scancode-toolkit-v31.1.1/venv/lib/python3.9/site-packages/summarycode/summarizer.py", line 273, in get_origin_info_from_top_level_packages
    holders = [h['holder'] for h in key_file_resource.holders]
AttributeError: 'ScannedResource' object has no attribute 'holders'

How To Reproduce

  1. scancode --processes 4 --license --package --json-pp ../scancode-output.json --summary --classify .

System configuration

  • What OS are you running on? MacOS
  • What version of scancode-toolkit was used to generate the scan file?
    • ScanCode version: 31.1.1
    • ScanCode Output Format version: 2.0.0
    • SPDX License list version: 3.17
  • What installation method was used to install/run scancode? download tarball from GH

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions