aboutcode-org / aboutcode-org/scancode-toolkit

Scan of perl5-5.31.6.tar.gz completes with errors

Ouverte
#1,862 1 commentaire 0 réactions 1 personne assignée Réclamée par @pombredanne Voir sur GitHub
archive extraction bug file info
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

A recent scan of perl5-5.31.6.tar.gz from https://github.com/Perl/perl5/archive/v5.31.6.tar.gz reported some errors that may want attention. The scan was initiated using scancode.io and was mostly successful.

Extracting archives...
ERROR extracting: perl5-5.31.6.tar.gz-extract/perl5-5.31.6/cpan/IO-Compress/t/files/encrypt-aes.zip: Password protected archive, unable to extract
ERROR extracting: perl5-5.31.6.tar.gz-extract/perl5-5.31.6/cpan/IO-Compress/t/files/encrypt-standard.zip: Password protected archive, unable to extract
Extracting done.
Setup plugins...
Collect file inventory...
ERROR: failed to run pre-scan plugin: classify:
Traceback (most recent call last):
File "/opt/scancode-toolkit/src/scancode/cli.py", line 1044, in run_codebase_plugins
plugin.process_codebase(codebase, **kwargs)
File "/opt/scancode-toolkit/src/summarycode/classify.py", line 153, in process_codebase
set_classification_flags(resource)
File "/opt/scancode-toolkit/src/summarycode/classify.py", line 345, in set_classification_flags
resource.is_legal = is_legal = name.startswith(_LEGAL) or name.endswith(_LEGAL)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

Scan files for: info, licenses, copyrights, packages, emails, urls with 3 process(es)...
Scanning done.
Some files failed to scan properly:
ERROR: failed to run pre-scan plugin: classify:
Traceback (most recent call last):
File "/opt/scancode-toolkit/src/scancode/cli.py", line 1044, in run_codebase_plugins
plugin.process_codebase(codebase, **kwargs)
File "/opt/scancode-toolkit/src/summarycode/classify.py", line 153, in process_codebase
set_classification_flags(resource)
File "/opt/scancode-toolkit/src/summarycode/classify.py", line 345, in set_classification_flags
resource.is_legal = is_legal = name.startswith(_LEGAL) or name.endswith(_LEGAL)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)
Summary: info, licenses, copyrights, packages, emails, urls with 3 process(es)
Errors count: 1
Scan Speed: 3.96 files/sec. 50.54 KB/sec.
Initial counts: 7258 resource(s): 6289 file(s) and 969 directorie(s)
Final counts: 7258 resource(s): 6289 file(s) and 969 directorie(s) for 78.29 MB
Timings:
scan_start: 2019-12-19T005312.260356
scan_end: 2019-12-19T012055.047237
setup_scan:licenses: 3.71s
setup: 3.71s
inventory: 1.90s
pre-scan:classify: 1.63s
pre-scan: 1.63s
scan:packages: 2.17s
scan: 1586.20s
post-scan:classify-package: 2.16s
post-scan:consolidate: 7.82s
post-scan:summary: 27.35s
post-scan:is-license-text: 2.16s
post-scan:license-clarity-score: 17.86s
post-scan:summary-key-files: 2.24s
post-scan: 59.60s
output:json-pp: 6.82s
output: 6.82s
total: 1671.77s
Removing temporary files...done.
[perl5-5.31.6.tar.gz_scan.json.zip](https://github.com/nexB/scancode-toolkit/files/3985244/perl5-5.31.6.tar.gz_scan.json.zip)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.