This repository was archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
JSON Decode Error #4
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I ran into this issue this week, I saw that :mount command was not running on ranger so I decided to output into a file using sterr and got the following error
1 Traceback (most recent call last):
2 File "/home/user/.config/ranger/ranger_udisk_menu/menu.py", line 229, in <module>
3 cp = ChoosePartition()
4 File "/home/user/.config/ranger/ranger_udisk_menu/menu.py", line 34, in __init__
5 self._read_partitions()
6 File "/home/user/.config/ranger/ranger_udisk_menu/menu.py", line 38, in _read_partitions
7 self.blkinfo = json.loads(r)
8 File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
9 return _default_decoder.decode(s)
10 File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
11 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
12 File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
13 obj, end = self.scan_once(s, idx)
14 json.decoder.JSONDecodeError: Expecting ',' delimiter: line 66 column 22 (char 1579)
~
So I decided to check the dependencies listed and I have it installed all of them also I tried to run lsblk --all --json -O and get a good json format. I was wondering if this can be from json.load() function?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working