AnsweredAssumed Answered

Problem starting ArcGIS Python API ArcGIS Pro 2.1.2

Question asked by bartjan on Apr 24, 2018
Latest reply on Apr 24, 2018 by bartjan

I'm starting to try to understand how Python works with ArcGIS Pro, which is completely different then in AG10x. My objective is to convert several of my AG 10x script to AG Pro.

 

I've been reading the basic concepts on https://developers.arcgis.com/python/guide/install-and-set-up/#Using-the-API, http://pro.arcgis.com/en/pro-app/arcpy/get-started/ and some blog posts on this forum.

 

It seemed to me that the first thing to do is start to execute some of the example-code on jupyter.

However when trying the basic code:

from arcgis.gis import GIS

my_gis = GIS()

my_gis.map()

I get a socket error (“'A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied', None, 10057, None),)”)

 

I'm behind a proxy, but have the "http_proxy" variable defined.

 

It seems to me that my AG Pro installation isn’t correct. Right now I have AG Pro 2.1.2, I always followed the standard upgrade steps (started with 1.2).

 

One of the other questions I have is about anaconda. I understood conda is installed with AG Pro. Is Anaconda also installed when installing AG Pro? The link on the help gets you to a non-responsive website (https://www.anaconda.com/download/#windows)

 

Hope someone can give me some hints how to start working with python in AG Pro and to get a clean working installation.

Outcomes