laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000172567
EnvoiNovember 25, 2024
Dernière modificationDecember 24, 2024
S’applique àArcGIS API for Python
Version trouvée2.3.0
Système d’exploitationRed Hat Enterprise Linux
Version du système d’exploitation8.3
StatutNon-Reproducible

Informations supplémentaires

This issue is fixed in development

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000172567

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