-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
An error occurs when parsing a general text file. #3179
Comments
https://github.com/nexB/scancode-toolkit/blob/e72110bb3b0cd41ac269eaf80aa131e06d412ec0/src/licensedcode/cache.py#L413 |
After installing ScanCode, the following command must be executed once so that the error does not occur after that. |
@soimkim Thank you for the report. I am struggling with the same issue as part of making a new release in https://github.com/nexB/scancode-toolkit/tree/v31.2.2-branch-hotfix for the other report you made in #3171 and this fails the same way at https://github.com/nexB/scancode-toolkit/actions/runs/3761821678 |
@soimkim this should be fixed in scancode-toolkit 31.2.3 which was released by @pombredanne, please give it a try! |
@AyanSinhaMahapatra , The same error occurs in version 31.2.3.
|
I could reproduce this btw,
|
@soimkim we found a workaround and the source of the bug:
So the culprit is that we have a new attrs release 22 on December 21st. Things pickled with the previous version of attrs (the pickled index) cannot unpickle with newer versions. We will have a permanent fix in v32.0.
|
We have vendored attrs only for its use in licensedcode.models. With this, we avoid updates to the attrs library that would make unpickling the license index fail. Reported-by: Soim @soimkim Reference: #3192 Reference: #3179 Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
@soimkim we just pushed a bugfix release scancode-toolkit 31.2.4 (by @pombredanne) and I cannot reproduce the bug with v31.2.4 anymore so please give it a try and let us know! |
I confirmed that it was fixed by installing scancode-toolkit 31.2.4. |
Description
An error occurs when parsing a general text file.
Error Message:
How To Reproduce
Analyze the path that contains the following file.
scancode --json-pp - --license .
File :
System configuration
The text was updated successfully, but these errors were encountered: