Skip to content

An error occurs when parsing a general text file. #3179

Description

@soimkim

Description

An error occurs when parsing a general text file.
Error Message:

Traceback (most recent call last):
  File "/home/soim/git/venv/lib/python3.8/site-packages/scancode/interrupt.py", line 91, in interruptible
    return NO_ERROR, func(*(args or ()), **(kwargs or {}))
  File "/home/soim/git/venv/lib/python3.8/site-packages/scancode/api.py", line 171, in get_licenses
    idx = cache.get_index()
  File "/home/soim/git/venv/lib/python3.8/site-packages/licensedcode/cache.py", line 353, in get_index
    return get_cache(force=force, index_all_languages=index_all_languages).index
AttributeError: index

How To Reproduce

Analyze the path that contains the following file.
scancode --json-pp - --license .
File :

$ cat fosslight_log_221223_1022.txt
[   INFO] Checking copyright/license writing rules:
  Compliant: OK
  Summary:
    Open Source Package File: N/A
    Detected Licenses: N/A
    Files without license / total: 0 / 0
    Files without copyright / total: 0 / 0
  Files without license and copyright: N/A
  Files without license: N/A
  Files without copyright: N/A
  Tool Info:
    OS: Linux 5.15.0-56-generic
    Analyze path: test
    Python version: 3
    fosslight_prechecker version: fosslight_prechecker v3.0.11

[WARNING] Created file name: /home/soim/git/temp/fosslight_lint_221223_1022.yaml

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? Ubuntu 20.04
  • What version of scancode-toolkit was used to generate the scan file? scancode-toolkit==31.2.1
  • What installation method was used to install/run scancode? pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions