laptop and a wrench

Bug

Following the documented Esri example returns the error message, "AttributeError: 'GIS' object has no attribute 'servers'".

Zuletzt veröffentlicht: December 17, 2021 ArcGIS API for Python
Bug-ID-Nummer BUG-000137276
EingereichtFebruary 5, 2021
Zuletzt geändertJune 27, 2025
Gilt fürArcGIS API for Python
Gefunden in Version1.8.3
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version2.0.0
StatusFixed

Workaround

Follow instructions instead of the example provided (i.e. use either the get() or list() functions for the module arcgis.gis.server.ServerManager)

  • For example:
    • gis = GIS(profile="your_ent_admin_profile")
    • hosting_server = arcgis.gis.server.ServerManager(gis).get(role="HOSTING_SERVER")
  • Refer to the documentation of the ServerManager module, https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#arcgis.gis.server.ServerManager

Schritte zur Reproduzierung

Bug-ID: BUG-000137276

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln