laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000172567
EingereichtNovember 25, 2024
Zuletzt geändertDecember 24, 2024
Gilt fürArcGIS API for Python
Gefunden in Version2.3.0
BetriebssystemRed Hat Enterprise Linux
Betriebssystemversion8.3
StatusNon-Reproducible

Zusätzliche Informationen

This issue is fixed in development

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000172567

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln