laptop and a wrench

Erro

When using the ArcGIS API for Python 2.3.0 arcgis.graph module on a Linux machine, the script fails with the following error. TypeError Traceback (most recent call last) /tmp/ipykernel_676/269132691.py in <cell line: 0>() 15 relationships = [{"name":"Owns"}] 16 ---> 17 kg.named_object_type_adds(entities, relationships) /opt/conda/lib/python3.11/site-packages/arcgis/graph/_service.py in named_object_type_adds(self, entity_types, relationship_types) 718 r_enc.add_relationship_type(relationship_type) 719 --> 720 r_enc.encode() 721 error = r_enc.get_encoding_result().error 722 if error.error_code != 0: TypeError: encode(): incompatible function arguments. The following argument types are supported: 1. (self: GraphEncoder) -> None Invoked with: <arcgis.graph._arcgisknowledge.GraphNamedObjectTypeAddsRequestEncoder object at 0x7f465e268070>

ArcGIS API for Python
Número de ID do Erro BUG-000172567
EnviadoNovember 25, 2024
Última ModificaçãoDecember 24, 2024
Aplica-se àArcGIS API for Python
Versão encontrada2.3.0
Sistema OperacionalRed Hat Enterprise Linux
Versão do Sistema Operacional8.3
StatusNon-Reproducible

Informações Adicionais

This issue is fixed in development

Solução Provisória

Use a version earlier than 2.3.0 of the ArcGIS API for Python, or an upcoming future version.

Etapas para Reproduzir

ID do Erro: BUG-000172567

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