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.

Assessment

This issue has not been assessed yet.

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'
Dominant language
Python
Stars
11
Forks
13
PR merge metrics
No merged PRs in 30d

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.

More from spdx/spec-parser

All issues in spdx/spec-parser

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.