You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
Another crash now that an update is available for a module:
Traceback (most recent call last):
File "/web/ftp/repo/magisk/util/cli.py", line 26, in <module>
sys.exit(Main.exec())
File "/mnt/data/web/ftp/repo/magisk/util/sync/cli/Main.py", line 53, in exec
code = cls._check_args()
File "/mnt/data/web/ftp/repo/magisk/util/sync/cli/Main.py", line 73, in _check_args
return cls.sync()
File "/mnt/data/web/ftp/repo/magisk/util/sync/cli/Main.py", line 265, in sync
sync.update(
File "/mnt/data/web/ftp/repo/magisk/util/sync/core/Sync.py", line 134, in update
online_module = self._update_jsons(track=track, force=force)
File "/mnt/data/web/ftp/repo/magisk/util/sync/core/Sync.py", line 84, in _update_jsons
track.write(track_json_file)
File "/mnt/data/web/ftp/repo/magisk/util/sync/model/TrackJson.py", line 55, in write
JsonIO.write(new, file)
File "/mnt/data/web/ftp/repo/magisk/util/sync/model/JsonIO.py", line 12, in write
json.dump(self, f, indent=2)
File "/usr/lib/python3.8/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/lib/python3.8/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.8/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type PosixPath is not JSON serializable
Module in question would be isodrive. And the worst thing about this: the crash also destroyed the corresponding track.json, which now looks like this:
{
"id": "isodrive",
"update_to":
(yes, that's the entire file) Luckily I still have not set up update via cron or things would have been broken online as well. And I kept a backup from before the repo-util upgrade, so I was able to restore the track.json (with manual corrections). To help you debug, here's the full track.json:
Looks like that was updated properly, as v2.1 was the update being pulled (released 2h ago) – so for tests, just set "versions": 1 in track.json and remove v2.1 from update.json (but whom do I tell that 🙈).
Oh, the corresponding local/isodrive.json (looks like my local updater needs to be adjusted to not escape slashes – no idea why it suddenly does that):
Another crash now that an update is available for a module:
Module in question would be
isodrive
. And the worst thing about this: the crash also destroyed the correspondingtrack.json
, which now looks like this:(yes, that's the entire file) Luckily I still have not set up update via cron or things would have been broken online as well. And I kept a backup from before the repo-util upgrade, so I was able to restore the
track.json
(with manual corrections). To help you debug, here's the fulltrack.json
:and the corresponding
update.json
:Looks like that was updated properly, as v2.1 was the update being pulled (released 2h ago) – so for tests, just set
"versions": 1
intrack.json
and remove v2.1 fromupdate.json
(but whom do I tell that 🙈).Oh, the corresponding
local/isodrive.json
(looks like my local updater needs to be adjusted to not escape slashes – no idea why it suddenly does that):The text was updated successfully, but these errors were encountered: