laptop and a wrench

Erro

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

Última Publicação: December 17, 2021 ArcGIS API for Python
Número de ID do Erro BUG-000137276
EnviadoFebruary 5, 2021
Última ModificaçãoJune 27, 2025
Aplica-se àArcGIS API for Python
Versão encontrada1.8.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa2.0.0
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000137276

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download