Getting PermissionError: [Errno 13] Permission denied
issue while trying to write into an xml file present in clearcase using python
tree.write(locationXml, pretty_print=True, xml_declaration=True,encoding="UTF-8")
Getting PermissionError: [Errno 13] Permission denied
issue while trying to write into an xml file present in clearcase using python
tree.write(locationXml, pretty_print=True, xml_declaration=True,encoding="UTF-8")
I checkout the file and try to write into it and faced this issue.
First, it is important to know if is a snapshot or dynamic views.
They have each different edge cases (hijacked vs. eclipsed).
But also it can change with UCM views (where you have to set an UCM activity before being to checkout a file)
In your case, though, check if another process isn't keeping an handle on the file you want to modify, which would explain the error message.
Depending on your OS, check if the file is still accessible once checked out.
For that, a cleartool status
in the parent folder of the checked out file remains the best option to get more clues.