ArcPy Permission Denied Errors in ArcGISPro 2.3

9793
11
Jump to solution
02-06-2019 03:45 PM
MichaelWallace3
Regular Contributor

Has anybody encountered a Permission Denied error while using python based Geoprocessing tool in ArcGISPro 2.3?

I upgraded to 2.3 and then ran conda install spyder so that I could use the spyder IDE. After I did this I am unable to

import arcpy

I receive the following error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\__init__.py", line 20, in <module>
import numpy
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\__init__.py", line 158, in <module>
from . import fft
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\fft\__init__.py", line 15, in <module>
import mkl_fft._numpy_fft as _nfft
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 780, in get_code
File "<frozen importlib._bootstrap_external>", line 832, in get_data
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\mkl_fft\\__init__.py'

I am guessing Spyder installed numpy that wasn't esri friendly based on this output just wondering if anyone else has seen this issue. It is inhibiting my ability to run simple functions like merge append etc. I will probably have to downgrade to 2.2.4.

0 Kudos
11 Replies
DanPatterson_Retired
MVP Emeritus
AndresCastillo
MVP Regular Contributor

https://www.programmersought.com/article/78454597777/ 

(Solved) Python3 environment error in ArcGIS Pro, PermissionError: [WinError 5] Access denied.

The article discusses granting the proper privileges to the python directories

0 Kudos