Closed krzysztof-wolowski closed 4 years ago
Hi @kriswolo ! Thank you for raising the issue. The problem is raised because the new version of keep uses a different schema for ~/.keep/commands.json
. Unfortunately, no migration script has been shipped out with the latest version, hence the errors are being raised. (This is a technical error from my side, which I can not solve due to unavailability of time.) :(
The fix is as below:
# Use Python3
import os
import json
home_dir = os.path.expanduser("~")
with open(home_dir + "/.keep/commands.json", "r") as f:
old_commands = json.load(f)
new_commands = {}
for key, value in old_commands.items():
new_commands[key] = {
"desc": value,
"alias": ""
}
print(new_commands)
Please put the new_commands
inside your ~/.keep/commands.json
and the new version will be good to go. Also please use pip3
to install keep
. :)
Thank you! Let me know if the problem persists.
Thx @OrkoHunter : worked fine for me !
I was getting the above error when trying to run any keep command. Rolled back to v.2.4.2.