laptop and a wrench

Bug

When using the ArcGIS API for Python, when calling the portal license functions, a type error prevents "arcgis.gis.admin.PortalLicense" from working properly.

Last Published: November 8, 2019 Portal for ArcGIS
Bug ID Number BUG-000126403
SubmittedOctober 30, 2019
Last ModifiedJune 5, 2024
Applies toPortal for ArcGIS
Version found10.7.1
Operating SystemWindows OS
StatusFixed

Workaround

There is a 'Super' syntax used when initializing the PortalLicense object (_system.py in the admin folder of the conda environment).

 

Line 634 - Changing the format from super(Derived, self).init() to super().init() resolves the issue.

 

NOTE : The fix must only be implemented for testing purposes. It is recommended to make a backup of the original file. Implementing the fix effectively void support (the user are working with the API as-released).

Steps to Reproduce

Bug ID: BUG-000126403

Software:

  • Portal for ArcGIS

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options