JamesRamm / archook

Searches the system for arcgis and makes arcpy available to python (regardless of pythonpath/system path/registry settings)
GNU General Public License v2.0
81 stars 28 forks source link

DLL load failed while importing _arcgisscripting #41

Open yodrin opened 2 months ago

yodrin commented 2 months ago

On being found, ArcPy tries to import everything from _arcgisscripting from ._arcgisscripting import * but fails with the following message: ImportError: DLL load failed while importing _arcgisscripting: The specified module could not be found.

Latest version of ArcGIS Pro (3.3.1)

mhw-at-yg commented 2 months ago

What version of Archook is being used? This looks similar to an error that was fixed in #39. Use the developer or manual install recipe at https://github.com/JamesRamm/archook?tab=readme-ov-file#installation if yours is older than that fix. (Unfortunately I am unable to generate new PyPi releases.)

If current, can you share a minimal script that results in this error?

yodrin commented 1 month ago

It happens on the start of the script:

`from archook import get_arcpy

get_arcpy(pro=True)`