Access to path denied

Hello everyone,

so I was testing out a couple of Python scripts in Rhino7 on my Mac and I was promted this messsage at some point:

Exception occured
Message: Access to the path is denied.

Traceback(most recent call last):
SystemError: Acces to the path is denied.

Former forum entries didn’t help, so I tried a couple things and found out that when I create a new file all the scipts that work run fine, but as soon as I run a script with a mistake an error message is shown. When I run the fixed script - or any other script that worked just fine a couple seconds ago - on the same Rhino file, the message mentioned above comes up. This happens on both RunPythonScript and EditPythonScript.

My solution so far is to create a new file every time I run a broken script, which is very annoying and time consuming. I hope someone can help me fix this.

Thanks in advance.

maybe related (but unsolved) topic: