Problem starting ArcGIS Python API ArcGIS Pro 2.1.2

303
4
04-24-2018 07:01 AM
Bart-JanSchoenmakers
New Contributor III

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.

4 Replies
DanPatterson_Retired
MVP Esteemed Contributor
Bart-JanSchoenmakers
New Contributor III

I read all your blog posts.

They are really helpful understanding this new configuration (it seems that I've been working in the stone age with python 2.7).

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Hi Bart-Jan,

I always verify that I'm using the latest version of conda when I run into issues.  I recommend doing this by running the command 'conda upgrade -c esri arcgis' in the Python command prompt.  See the following link:

Install and set up | ArcGIS for Developers 

Bart-JanSchoenmakers
New Contributor III

It might be some kind of proxy server problem, which is blocking Anaconda. Since on my mobile phone I can get to the download page.

Anyone can confirm-me that ANACONDA has to be installed separately?

0 Kudos