Mario ha scrittoIf you have your Godot project open in the Godot editor, the editor will be blocking any other program from accessing the files. Close the Godot editor while running the Python script.
Hello Mario Godot wasn't open when I run the script, maybe I'm doing the process wrong let me explain what I'm doing:
1) In order to transform the files from JSON to JSON-SPINE, I erase all the previous JSON, ATLAS except the .TRES files from my project without open it in Godot:
*** INITIAL CONFIGURATION ***
2) Then I export the files in Spine to the Spine folder of the project:
*** EXPORTING FROM SPINE TO THE SPINE FOLDER***
*** GODOT PROJECT SPINE FOLDER AFTER EXPORTING ***
3) After all the files have been exported I have the JSON files ready to be changed.So I run the cmd in administrator mode and write the command line.
*** RUNNING THE COMMAND AND GETTING THE ERROR****
C:\Users\richa\AppData\Local\Programs\Python\Python311\python C:\GODOT\TUTORIAL_FIGHTING_GAME_TO_TRY\TUTORIAL_FIGHTING_GAME\Spine\convert.py C:\GODOT\TUTORIAL_FIGHTING_GAME_TO_TRY\TUTORIAL_FIGHTING_GAME\Spine
4) Then is when I get the error message:
PermissionError: [WinError 32] The process does not have access to the file because it is in use by another process:
'C:\\GODOT\\TUTORIAL_FIGHTING_GAME_TO_TRY\\TUTORIAL_FIGHTING_GAME\\Spine\\Ebrius.json' -> 'C:\\GODOT\\TUTORIAL_FIGHTING_GAME_TO_TRY\\TUTORIAL_FIGHTING_GAME\\Spine\\Ebrius.spine-json'
Maybe in this way will be easier to see where I'm mistaken. I haven't open Godot in the process, and Spine is also close.