Important Python API Update for AGOL: 1.5.2

1451
5
12-05-2018 07:12 PM
by Anonymous User
Not applicable
0 5 1,451

Tonight's update to ArcGIS Online introduces a new concept of "User Types". You will not be able to interact with these new user types unless you are using v1.5.2 of the Python API, also released tonight. Please install or upgrade this newest version of the Python API via:

conda install -c esri arcgis

or

pip install arcgis

Other new features and bug fixes associated with this release can be viewed here. This includes a MapView.take_screenshot() function, Spatially Enabled DataFrame updates, and more! Integrate this new version of the Python API into your environment, and as always let us know your feedback!

5 Comments
NathanDuncan
New Contributor III

Hi,

I'm attempting to update the Python API from v1.4.1 to v1.5.2 using the above methods but I am unable to do so. The pip install method returns 'Requirement already satisfied', while the conda install method errors out with these messages. It might be worth mentioning too that the conda method also only tries to upgrade to v1.4.2 and not v1.5.2.

Do I have any other options for updating the API?

Thanks

Nathan

DanPatterson_Retired
MVP Emeritus

Version of Pro? are you conda updating from a cloned environment?

NathanDuncan
New Contributor III

Hi Dan,

Currently running the latest version of Pro - 2.2.4

I'm not entirely sure, but I don't think so - the conda environment is new to me so I'm having trouble getting my head around it (I've only ever really used virtualenv, but I assume they're similar). To attempt the update I've run (as administrator) the Python Command Prompt shortcut from the ArcGIS Pro Start Menu folder item which appears to be using the arcgispro-py3 environment.

DanPatterson_Retired
MVP Emeritus

The Python Package Manager—ArcPy Get Started | ArcGIS Desktop 

Notes from there

As of ArcGIS Pro 2.2, the default arcgispro-py3 environment is read-only and cannot be modified. Changes can be made by creating a new environment (or cloning an environment) into your user profile and making desired changes to the new environment.

Could be you need to wait until Pro 2.3 comes out.  2.3 (currently in beta 2) had 1.5.2 installed by default, if I remember correctly.  If you aren't in a rush I would wait, and then clone the 2.3 environment.

/blogs/dan_patterson/2018/12/28/clone 

NathanDuncan
New Contributor III

Thanks Dan, appreciate the help