Dear Readers
After a couple of years I tried to rerun some Stata programmes that include ArcGis Pro (now 3.7) commands. I used the same set up, but although I set the python exec appropriately Stata (19.5 up to date) crashes when I try to import arcpy
CRASH
Any ideas? The likeliest explanation is that the ArcGis python version is incompatible with the arcpy version, but I don't know why they would be different.
In a "cmd" window I can run the ArcGis python version and import arcpy, and it works.

Thanks for your attention and best wishes.
Richard
After a couple of years I tried to rerun some Stata programmes that include ArcGis Pro (now 3.7) commands. I used the same set up, but although I set the python exec appropriately Stata (19.5 up to date) crashes when I try to import arcpy
Code:
python query
local initialised = "`r(initialized)'"
di `r(initialized)'
if "`r(initialized)'" ~= "1" {
python set exec "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"
python set userpath "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\"
}
python
import arcpy
Any ideas? The likeliest explanation is that the ArcGis python version is incompatible with the arcpy version, but I don't know why they would be different.
In a "cmd" window I can run the ArcGis python version and import arcpy, and it works.
Thanks for your attention and best wishes.
Richard

Comment