laptop and a wrench

Bogue

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

Dernière publication: October 10, 2019 ArcGIS API for Python
Numéro d’ID de bogue BUG-000125721
EnvoiOctober 2, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée1.6.2
Système d’exploitationWindows OS
Version du système d’exploitation2012 R2
StatutNon-Reproducible

Informations supplémentaires

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

Solution de contournement

  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. 

Étapes pour reproduire

ID de bogue: BUG-000125721

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