laptop and a wrench

Bogue

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

Dernière publication: December 17, 2021 ArcGIS API for Python
Numéro d’ID de bogue BUG-000137276
EnvoiFebruary 5, 2021
Dernière modificationJune 27, 2025
S’applique àArcGIS API for Python
Version trouvée1.8.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction2.0.0
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000137276

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement