laptop and a wrench

Error

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 del error BUG-000172567
EnviadoNovember 25, 2024
Última modificaciónDecember 24, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.3.0
Sistema operativoRed Hat Enterprise Linux
Versión de sistema operativo8.3
EstadoNon-Reproducible

Información adicional

This issue is fixed in development

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000172567

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