-
Notifications
You must be signed in to change notification settings - Fork 22
"cli.py sync" crashes on comparing 'str' and 'int' for versionCode #30
Comments
|
Well, then we have an issue there: many LTS systems (like mine) are having 3.8 still and no easy upgrade path. Can't you use a different implementation? TBH, I don't even see the reason for that check there:
So why not reducing if not (file.parents[1] == module_folder and file.exists()): I've just verified: Any chance for an adjustment here, @ya0211? |
@IzzySoft , this has been resolved, no longer using |
Thanks! I'll update ASAP (just performed a Just for info: I (hopefully) finished updating my framework last night. Still needs some testing, but I'm confident to be "back to normal" on the weekend. The only open question remaining is what happened to |
|
Thanks for confirming! I'll then remove it from my framework as well (admitting I cannot remember ever having used it). |
I just tried with the latest code from git, and have another crash with
cli.py sync
:This seems to be a regression from the last commit(s) as it didn't happen with the code from the tag. The culprit probably lies in upstream's
update.json
I guess:As you can see, it defines
versionCode
as a string. Changing the indicated line 55 in Pull.py tosolves this. But then there's the next crash with another module, unrelated to the above:
Here it seems you've changed the naming of the files, but not in all places. The new ZIP is
v1.9.1_6990.zip
, but going by itsmodule.prop
should rather bev1.9.1_(6990)_6990.zip
(corresponding to the previousv1.9.0_(6986)_6986.zip
). I've tried renaming the files accordingly and runningsync
again (so it would store the files once more using the wrong name but find the correct ones), but that didn't work out. As the error isI've added some debug (
print(file)
) to see which one it is:magisk/modules/zygisk_lsposed/v1.9.1_6990.md
. That file does exist. But indeedPosixPath
has nois_relative_to
– onlyPurePosixPath
has that. So I tryfile = PurePosixPath(file)
, which only changes the error message toAttributeError: 'PurePosixPath' object has no attribute 'is_relative_to'
. I'm clueless with this one, and why it only happens with this module – hope you have an idea there.The text was updated successfully, but these errors were encountered: