spdx / spdx/spec-parser

AttributeError when running with --verbose option

Open
#183 0 comments 0 reactions 1 assignee View on GitHub

@zvr is already working on this.

Since Feb 20, 2025.

Dominant language
Python
Stars
11
Forks
13
PR merge metrics
No merged PRs in 30d

Description

When running the spec-parser with a print verbose information option, an AttributeError occurs.

Command line:

python spec-parser/main.py -v -n spdx-3-model/model

Error messages:

Traceback (most recent call last):
  File "/Users/arthit/projects/spec-parser/main.py", line 9, in <module>
    cfg = RunParams("spec-parser")
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arthit/projects/spec-parser/runparams.py", line 19, in __init__
    opt_force = self.process_args()
                ^^^^^^^^^^^^^^^^^^^
  File "/Users/arthit/projects/spec-parser/runparams.py", line 95, in process_args
    self.log.basicConfig(level=logging.INFO)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Logger' object has no attribute 'basicConfig'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.