aboutcode-org / aboutcode-org/scancode-toolkit

copyright scan error

Đang mở
#4,129 3 bình luận 7 reaction 1 người được giao Được @AyanSinhaMahapatra nhận Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

> Please leave a brief description of the bug or feature request:

Copyright scan error occured.
```
{
"path": "source/.github/workflows/test.yaml",
"type": "file",
"detected_license_expression": null,
"detected_license_expression_spdx": null,
"license_detections": [],
"license_clues": [],
"percentage_of_license_text": 0,
"copyrights": [],
"holders": [],
"authors": [],
"scan_errors": [
"ERROR: for scanner: copyrights:\nERROR: Unknown error:\nTraceback (most recent call last):\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/scancode/interrupt.py\", line 91, in interruptible\n return NO_ERROR, func(*(args or ()), **(kwargs or {}))\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/scancode/api.py\", line 71, in get_copyrights\n copyrights, holders, authors = Detection.split(detections, to_dict=True)\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/cluecode/copyrights.py\", line 434, in split\n for detection in detections:\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/cluecode/copyrights.py\", line 110, in detect_copyrights\n numbered_lines = numbered_text_lines(location, demarkup=demarkup)\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/textcode/analysis.py\", line 116, in numbered_text_lines\n if demarkup and markup.is_markup(location):\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/textcode/markup.py\", line 67, in is_markup\n return is_markup_text(start)\n File \"/home/oscsystem/venv3/lib/python3.10/site-packages/textcode/markup.py\", line 72, in is_markup_text\n if text.startswith('<'):\nTypeError: startswith first arg must be bytes or a tuple of bytes, not str\n"
]
```

### How To Reproduce

> Tell us how to reproduce the issue.
1. Download the check source code : git clone https://github.com/go-check/check
2. Command : scancode -l -c --json-pp out.json check

### System configuration

> For bug reports, it really helps us to know:

* What OS are you running on? (Windows/MacOS/Linux) : **Linux 22.04 / python3.10.12**
* What version of scancode-toolkit was used to generate the scan file? : **32.2.1**
* What installation method was used to install/run scancode? (pip/source download/other) : **pip**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.