laptop and a wrench

漏洞

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

上次发布: October 10, 2019 ArcGIS API for Python
漏洞 ID 编号 BUG-000125721
已提交October 2, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.6.2
操作系统Windows OS
操作系统版本2012 R2
状态Non-Reproducible

附加信息

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

解决办法

  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. 

重现步骤

漏洞 ID: BUG-000125721

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项