Select to view content in your preferred language

Python API and updating your hosted services nightly

660
3
09-20-2017 09:33 AM
by Anonymous User
Not applicable

Hi all,

I am trying to use a python script found here to update hosted services:

Updating your hosted feature services with ArcGIS Pro and the ArcGIS API for Python | ArcGIS Blog 

I keep getting the following error:

Any idea why?

Thank you,

Alex

Tags (1)
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Alex,

You Python IDE may not be configured to use the correct python environment.  What IDE are you using?

Try the following:

1.  Open a command prompt

2.  Set the location to 'C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3'.  Ex:

3.  Try executing your script from here:

by Anonymous User
Not applicable

thanks Jake! I tried. but get the same error in the cmd prompt

Jupyter Notebook works perfect.

All updates are in too:

any idea?

0 Kudos
by Anonymous User
Not applicable

I am using the regular IDE provided with ArcGIS. 

0 Kudos