Bitdefender blocks python from Mac Terminal or Jupyter notebook from writing files to protected folders even you allowed it.
I used to be able to do this but lately, I cannot.
I created an "unprotected" folder named "Test". In an unprotected folder, there is no problem. See screenshot
I run a Python script from the terminal to write a file. No problem
I run python from a Jupyter notebook to write a file. No problem.
I run the same script I used in the Jupyter from Python directly. No problem.
However, when I do the same thing in a "protected" folder, but I get permission errors. Even when they have permissions under Bitdefender.
Terminal and Python are configured to be "Allowed"
I run a Python script from the terminal to write a file. Operation Not Permitted Error
I run python from a Jupyter notebook to write a file. I cannot even create the notebook.
I run the same script I used in the Jupyter from Python directly. No problem.
Terminal are granted full disk access from MacOS Security