ago import fails in ArcPro Python

736
6
12-18-2018 06:24 PM
MaazaMekuria
Occasional Contributor

I am not sure why but I am running Pro 1.4.1 . The same code run on ArcGIS 10.6 and I am wondering if upgrading to pro 2.2 will restore the functionality? 

Tags (2)
0 Kudos
6 Replies
DanPatterson_Retired
MVP Emeritus

What code are you using?

0 Kudos
MaazaMekuria
Occasional Contributor

The python script aborts ass soon as it begins with an error message on not finding ago (import ago). 

0 Kudos
DanPatterson_Retired
MVP Emeritus

There is no module called ago, you can import other "a..." stuff that is related to esri products

import ago
Traceback (most recent call last):

  File "<ipython-input-1-7ff8aea8a94b>", line 1, in <module>
    import ago

ModuleNotFoundError: No module named 'ago'




import arcgis

import arcpy

So perhaps you might want to show the script that you are using so people can discern what it is you are really trying to import

MaazaMekuria
Occasional Contributor

I think there is a module ago and it is not in Pro 1.4.1 . check out ESRI's website if you wish.  As at first, the same code runs in 10.6 (beginning with 10.3).

0 Kudos
MaazaMekuria
Occasional Contributor

0 Kudos
DanPatterson_Retired
MVP Emeritus

if it works in 10.6 and it doesn't work in Pro, it needs to be installed for Pro, (assuming it works for both environments)... they don't share modules, Pro's environment is totally self contained and isolated from ArcMap.

You probably want the "arcgis " module if you are trying to administer AGOL from Pro