-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
Exception when creating cyclonedx output #3016
Comments
Thanks for the report, I could reproduce from this JSON file you attached, and looking into this. |
I have the same problem, when I try to generate a cyclonedx or cyclonedx-xml I get the following error message: ERROR: failed to run output plugin: cyclonedx: Traceback (most recent call last): Using scancode scancode-toolkit-v31.1.1 and phyton 3.8.10 |
Hi there, got a similar issue with the cyclonedx-output when scanning a very large package... Used version:
Download, prepare package and start scanning:
Gives the following error message:
Maybe this helps... Regards, Thorsten |
@tgodau Thanks for the report. I am planning this for the next milestone |
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
* list of unhashable objects were being used to create a set, thus the error. Now we are using hashable identifier strings to create the set instead for all objects. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
* list of unhashable objects were being used to create a set, thus the error. Now we are using hashable identifier strings to create the set instead for all objects. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Fix unhashable type error in cyclonedx #3016
Oops closed by mistake! @tgodau @jkwasny @MochonDeVuelta could you test the fix? this is in latest develop (and will be released soon!). |
@tgodau @jkwasny @MochonDeVuelta Gentle ping, did you get to try this out? |
@AyanSinhaMahapatra if you have a test that verifies that this is fixed, let's close this as fixed. |
Yes, closing this. |
@AyanSinhaMahapatra |
@tgodau we have added this failure as a test in scancode already, see this commit: 553e624. Apart from that I've also run the full scan for you, which ran successfully. See attached file below: (The JSON was too big ~500mb to attach)
|
There is an exception when generating cyclonedx output and external references are merged. The error is:
seen = set(x)
TypeError: unhashable type: 'CycloneDxExternalRef'
It is not reproduceable using sample files but I've managed to slightly modify json output from scanning the samples and got the same error. Json file is attached, please try it with --cyclonedx and --from-json options.
I've run it on Windows 10 using python 3.8.10.
Thank you,
Janusz
scancode-samples-mod.txt
The text was updated successfully, but these errors were encountered: