laptop and a wrench

Bug

The Calculate Field tool in GeoAnalytics Tools fails to execute from Python API with the error message, "'datetime' is not defined"

Zuletzt veröffentlicht: October 10, 2019 ArcGIS API for Python
Bug-ID-Nummer BUG-000125721
EingereichtOctober 2, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.6.2
BetriebssystemWindows OS
Betriebssystemversion2012 R2
StatusNon-Reproducible

Zusätzliche Informationen

This issue is addressed for the next release of the ArcGIS API for Python.

Workaround

  1. Navigate to the manage_data.py in the folder path (C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\geoanalytics).
  2. Edit the manage_data.py file and add 'import datetime' at the start and save changes to the file.
  3. Restart Jupyter Notebook to reflect changes in the script and confirm that the tool executes successfully from Python API. 

Schritte zur Reproduzierung

Bug-ID: BUG-000125721

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