Skip to content

AttributeError when running with --verbose option #183

@bact

Description

@bact

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'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions