laptop and a wrench

Error

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

Última publicación: December 17, 2021 ArcGIS API for Python
Número de ID del error BUG-000137276
EnviadoFebruary 5, 2021
Última modificaciónJune 27, 2025
Relacionado conArcGIS API for Python
Versión encontrada1.8.3
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida2.0.0
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000137276

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga