Here protected means "read only".
Actually I've tried to fix a python package (.py) directly in spyder, it hanged upon saving, instead than rejected the save without administrator rights.
[Window, last master, Python 3.6]
Thanks for reporting. We'll fix it after we release Spyder 4.
(Still running into this in Spyder 4.0.1. Was very confused...)
@steff456, please take a look at this one asap.
@dalthviz, please take a look at this one to see if you can reproduce it. @steff456 tried to generate the reported error on Windows and macOS, but she was unable to.
@ccordoba12 I was able to reproduce this trying to modify a file under Program Files on Windows (where admin rights are needed to modify files and usually users have Read and Execution rights only).
Note: After testing seems like an issue with atomicwrites trying to create a temporary file using tempfile which in turn tries to get a temporary dir in _get_default_tempdir where a loop takes place and is the one causing the crash (it uses os.access which doesn't work well on Windows continuing the loop since the logic validation gives True even when the user doesn't have write access)
Thanks @dalthviz! Please talk to @steff456 to let her know how to reproduce this problem and how you think it could be fixed.
Note: python bugs related to tempfile hanging in Windows https://bugs.python.org/issue1473760 https://bugs.python.org/issue22107