Fixing Python PermissionError: [Errno 1] Operation not permitted after macOS Catalina Update

Python PermissionError: [Errno 1] Operation not permitted after macOS Catalina Update is an error which occurs when using certain operations in Python.

In the blog post I attempt to explain why this error takes place and how you can solve it, I will also add other solutions that could solve the error if possible.

Exploring Python PermissionError: [Errno 1] Operation not permitted after macOS Catalina Update

Python PermissionError: [Errno 1] Operation not permitted after macOS Catalina Update is an error which occurs when using certain operations in Python.

Do not mix between errors. Make sure the error message looks like the error message bellow after double checking.

                                                                       #
PermissionError: [Errno 1] Operation not permitted
                                                                       #

Bellow is a number of tested solutions that I have tried and have worked for me.

Solution 1 : Change your working directory or add jupter-kernel

The error might happen because of certain python operations that might trigger it. The fix is not very complicated.

I have two great method which might solve the issue for you. Let us start with the first method, the first method consists of two options.

The first option is to navigate to the Full disk access section under Security & Privacy then go to privacy and select jupter-kernel.

Try running the code again, the error should be gone.

The second option is to navigate to my user folder and create a new folder called dev . Move all your folders and files there and start your code from there, as a result the error should not show up.

If none of the options above has worked try the solution bellow.

Solution 2 :  Add Finder.app to your System Preferences

The second method is as simple as the first method, the only difference is that this requires more steps.

On your MacOs navigate to System Preferences. Now, locate Security & Privacy ad then locate Privacy.

Locate the lock in the bottom left and enter your password, click the + plus sign under Full Disk Access.

Add finder and put the path to Finder.app in there /System/Library/CoreServices/Finder.app

I hope the methods above solved your issue, Thank you so much for reading.

Summing-up : 

That is it guys, we arrived at the end of this article, I did my best to help you solve the error : Python PermissionError Errno 1 Operation not permitted after macOS Catalina Update , I wish you good luck with your Python projects.

Thank you for reading, keep coding and cheers. If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/