Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License in config.json.example causes JSON parsing error #10

Open
samryanuofl opened this issue Jun 10, 2024 · 0 comments
Open

License in config.json.example causes JSON parsing error #10

samryanuofl opened this issue Jun 10, 2024 · 0 comments

Comments

@samryanuofl
Copy link

samryanuofl commented Jun 10, 2024

I tried installing this and the first time I ran cli.sh --help I got the error:

Traceback (most recent call last):
  File "/home/sam/dev/certification-tool-cli/app/main.py", line 20, in <module>
    from commands import (
  File "/home/sam/dev/certification-tool-cli/app/commands/__init__.py", line 16, in <module>
    from .available_tests import available_tests
  File "/home/sam/dev/certification-tool-cli/app/commands/available_tests.py", line 22, in <module>
    from client import client
  File "/home/sam/dev/certification-tool-cli/app/client.py", line 17, in <module>
    from config import config
  File "/home/sam/dev/certification-tool-cli/app/config.py", line 40, in <module>
    config = Config.parse_file(config_file)
  File "pydantic/main.py", line 561, in pydantic.main.BaseModel.parse_file
  File "pydantic/parse.py", line 64, in pydantic.parse.load_file
  File "pydantic/parse.py", line 37, in pydantic.parse.load_str_bytes
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 2 (char 2)

I think this is because the license at the top of config.json.example (the lines starting with #) is invalid JSON. When I deleted that it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant