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
Hidden Resource attributes are shown in scan results when running scancode on Python 3.7 #2201
Comments
Same issue on my side with Python3.6 |
This happens when you install scancode and do not use the bundled dependencies. attrs==20.1.0 is the source of the issue (we were using a pinned attrs==19.3.0 before The place where this likely comes from is here scancode-toolkit/src/scancode/resource.py Line 1276 in 31b9d58
We use an attr exclude filter to scancode-toolkit/src/scancode/resource.py Line 1293 in 31b9d58
asdict and this seems to be broken.I will need to investigate more ASAP as this block the release at this stage. |
Could this be related to python-attrs/attrs#684? |
@hynek Thank you++ for the hint. Let me check that right away! |
@hynek I confirm that python-attrs/attrs#684 solves the issue! IMHO this warrants a new PyPI release ASAP as this is a breaking change without this fix. |
Yes, I'll try to get out a bugfix release this week. |
@hynek Thank you: you are awesome (I truly mean this) |
I thought for a sec that I could get away with a temp use of an |
Just |
Do not use version 20.1.0 and add tests. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@hynek Thank you! That's so much simpler 🤦 |
Do not use attrs 20.1.0 as a workaround for #2201
Fixed with #2209 |
After getting the latest version of scancode dependencies that work with Python 3.7, I was able to run scancode toolkit. However, there is an issue with the results where all the attributes of a Resource is shown in the scan results.
The fields
location
,rid
,pid
,cache_location
,is_file
,is_filtered
,children_rids
,size_count
,files_count
,dirs_count
,scan_errors
,scan_time
,scan_timings
, andextra_data
should not show up in the scan results.The text was updated successfully, but these errors were encountered: