Select to view content in your preferred language

arcpy 3.2 - DLL load failed while importing _arcgisscripting

326
4
Jump to solution
08-13-2024 03:04 AM
padmalcom
Frequent Contributor

Hi, we try to use the python api for ArcGIS Pro 3.2. Unfortunately, we meet an error when importing arcpy.

What we do is to create an anaconda environment and install arcpy:

conda create -n arcgisexporter python=3.9

conda install arcpy=3.2 -c esri

When executing a python file in this repository with just the line "import arcpy",  I get a the following error:

ImportError: DLL load failed while importing _arcgisscripting: The specified module could not be found.

ArcGIS Enterprise 3.2.2 is installed on the same machine and running.

0 Kudos
1 Solution

Accepted Solutions
padmalcom
Frequent Contributor

Okay, I got it working by first installing arcgis and then arcpy-base.

View solution in original post

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

install arcpy-base which provides the minimum requirements for arcpy


... sort of retired...
0 Kudos
DanPatterson
MVP Esteemed Contributor

Install ArcPy—ArcGIS Pro | Documentation

the link from the help


... sort of retired...
0 Kudos
padmalcom
Frequent Contributor

Thank you @DanPatterson, but the error remains the same even when I install arcpy-base.

Could it be the case that I am not allowed to install arcpy in an empty conda environment that is not based on the arcgispro-py3 environment that comes with the conda installation of ArcGIS Pro?

0 Kudos
padmalcom
Frequent Contributor

Okay, I got it working by first installing arcgis and then arcpy-base.

0 Kudos