Skip to content

AttributeError: 'LicenseSymbol' object has no attribute 'wrapped' #749

Description

@tdruez

The attribution generation does not support license keys unknown by ScanCode-toolkit at the moment.

scancodeio-web-1  |   File "/app/scanpipe/pipes/output.py", line 681, in to_attribution
scancodeio-web-1  |     package.expression_links = get_expression_as_attribution_links(parsed)
scancodeio-web-1  |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scancodeio-web-1  |   File "/app/scanpipe/pipes/output.py", line 641, in get_expression_as_attribution_links
scancodeio-web-1  |     return parsed_expression.simplify().render(template=template)
scancodeio-web-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scancodeio-web-1  |   File "/usr/local/lib/python3.11/site-packages/license_expression/__init__.py", line 1283, in render
scancodeio-web-1  |     return template.format(symbol=self)
scancodeio-web-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scancodeio-web-1  | AttributeError: 'LicenseSymbol' object has no attribute 'wrapped'

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions