[ad_1]
When trying to edit a .json file using python, I get WinError 5. I’m able to edit the very same json file with another python file in the same directory, but this one file refuses to edit the .json file. When trying to edit it, I get WinError 5 and my code creates a ‘example.json.tmp’ file in the directory and edits that instead.
/files/example.json
-> Json file I want to edit
/files/ext/one.py
-> Can edit json file
/files/ext/two.py
-> Cannot edit json file
I’ve tried almost everything, including running my file as administrator.
[ad_2]