Hello, I have been running some scripts for a while without issue. Even after upgrading to ArcGis 3.1.1
Now, started receiving this error at random times in the code:
(this error shows it occurred in CopyFeatures, sometimes it happens during other functions)
Fatal Python error: InitDatetime: Could not import datetime C API
Python runtime state: initialized
ImportError: PyCapsule_Import could not import module "datetime"
Current thread 0x000025ac (most recent call first):
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512 in <lambda>
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 4690 in CopyFeatures
installed:
Conda version is 4.1.4
Base Python on machine is 3.11
PyCharm 2021.1.3 (Community Edition)
Build #PC-211.7628.24, built on June 29, 2021
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Tried the following:
1. uninstalled:
ArcGIS Pro
Pycharm
Python
2. removed any lingering folders for:
ArcGIS Pro
pip cache
3. re-installed all 3 (from 1)
Been working with ArcGis for about a year now, still learning. Any guidance on this would be appreciated.