Problem:

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.

Steps:

  1. I created an "unprotected" folder named "Test". In an unprotected folder, there is no problem. See screenshot

    1. I run a Python script from the terminal to write a file. No problem

    2. I run python from a Jupyter notebook to write a file. No problem.

    3. I run the same script I used in the Jupyter from Python directly. No problem.

  2. However, when I do the same thing in a "protected" folder, but I get permission errors. Even when they have permissions under Bitdefender.

    1. Terminal and Python are configured to be "Allowed"

    2. I run a Python script from the terminal to write a file. Operation Not Permitted Error

    3. I run python from a Jupyter notebook to write a file. I cannot even create the notebook.

    4. I run the same script I used in the Jupyter from Python directly. No problem.

Notes:

Conclusion