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 Number BUG-000172567
SubmittedNovember 25, 2024
Last ModifiedDecember 24, 2024
Applies toArcGIS API for Python
Version found2.3.0
Operating SystemRed Hat Enterprise Linux
Operating System Version8.3
StatusNon-Reproducible

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000172567

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options