laptop and a wrench

Error

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

Última publicación: October 10, 2019 ArcGIS API for Python
Número de ID del error BUG-000125721
EnviadoOctober 2, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.6.2
Sistema operativoWindows OS
Versión de sistema operativo2012 R2
EstadoNon-Reproducible

Información adicional

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

Solución alternativa

  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. 

Pasos para reproducir

ID del error: BUG-000125721

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