Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tdruez opened this issue May 26, 2023 · 0 comments
Closed

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

tdruez opened this issue May 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tdruez
Copy link
Contributor

tdruez commented May 26, 2023

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'
@tdruez tdruez self-assigned this May 26, 2023
@tdruez tdruez added the bug Something isn't working label May 26, 2023
tdruez added a commit that referenced this issue May 26, 2023
tdruez added a commit that referenced this issue May 30, 2023
tdruez added a commit that referenced this issue May 30, 2023
Signed-off-by: Thomas Druez <[email protected]>
@tdruez tdruez closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant