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?
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
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).
There is no module called ago, you can import other "a..." stuff that is related to esri products
<SPAN class="keyword token">import</SPAN> ago Traceback <SPAN class="punctuation token">(</SPAN>most recent call last<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN> File <SPAN class="string token">"<ipython-input-1-7ff8aea8a94b>"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">1</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> <SPAN class="operator token"><</SPAN>module<SPAN class="operator token">></SPAN> <SPAN class="keyword token">import</SPAN> ago ModuleNotFoundError<SPAN class="punctuation token">:</SPAN> No module named <SPAN class="string token">'ago'</SPAN> <SPAN class="keyword token">import</SPAN> arcgis <SPAN class="keyword token">import</SPAN> arcpy<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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
The python script aborts ass soon as it begins with an error message on not finding ago (import ago).
What code are you using?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.