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

JSONDecodeError #31

Open
bab1ch opened this issue Jun 3, 2024 · 0 comments
Open

JSONDecodeError #31

bab1ch opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@bab1ch
Copy link

bab1ch commented Jun 3, 2024

I'm unable to run dotgit since the last system update. I tried on fresh install also, no luck. I can't figure out where the issue is, did something changed in latest Python?

dotgit update
Traceback (most recent call last):
  File "/home/bab1ch/.local/bin/dotgit", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/bab1ch/.local/share/pipx/venvs/dotgit/lib/python3.12/site-packages/dotgit/__main__.py", line 94, in main
    'encrypt': EncryptPlugin(
               ^^^^^^^^^^^^^^
  File "/home/bab1ch/.local/share/pipx/venvs/dotgit/lib/python3.12/site-packages/dotgit/plugins/encrypt.py", line 85, in __init__
    super().__init__(*args, data_dir=data_dir, **kwargs)
  File "/home/bab1ch/.local/share/pipx/venvs/dotgit/lib/python3.12/site-packages/dotgit/plugin.py", line 12, in __init__
    self.setup_data()
  File "/home/bab1ch/.local/share/pipx/venvs/dotgit/lib/python3.12/site-packages/dotgit/plugins/encrypt.py", line 91, in setup_data
    self.hashes = json.load(f)
                  ^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@kobus-v-schoor kobus-v-schoor self-assigned this Jun 4, 2024
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

2 participants