Open oferprtz-atbay opened 1 year ago
@oferprtz-atbay Thanks for the report! I wonder if the message - albeit obscure - may not provide a decent hint on the problem: IsADirectoryError: [Errno 21] Is a directory: 'scan'
I assume that you used this option --json-lines scan
and the issue is that scan
is a directory. You should use a path to a file instead and this may solve your issue.
Related to the bugs referenced in #3609.
Description
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/runner/.local/lib/python3.10/site-packages/scancode/cli.py", line 1081, in run_codebase_plugins plugin.process_codebase(codebase, **kwargs) File "/home/runner/.local/lib/python3.10/site-packages/formattedcode/output_jsonlines.py", line 47, in process_codebase output_json_lines.write( File "/home/runner/.local/lib/python3.10/site-packages/click/utils.py", line 137, in getattr return getattr(self.open(), name) File "/home/runner/.local/lib/python3.10/site-packages/click/utils.py", line 158, in open raise FileError(self.name, hint=e.strerror) from e click.exceptions.FileError: Is a directory
Scanning done. Summary: licenses, copyrights with 1 process(es) Errors count: 0 Scan Speed: 4.30 files/sec. Initial counts: 3048 resource(s): 2068 file(s) and 980 directorie(s) Final counts: 3048 resource(s): 2068 file(s) and 980 directorie(s) Timings: scan_start: 2023-06-01T150512.741215 scan_end: 2023-06-01T151317.813026 setup_scan:licenses: 3.35s setup: 3.35s inventory: 0.59s scan:licenses: 0.26s scan: 480.58s total: 485.18s Removing temporary files...done.