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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動