I am not whaat changed between 2.6 and 2.7 of ArcPro and the related Python API but the script that run without fail is crashing miserably at the "in_memory" save location .
rteFCSel = fcrte.save('in_memory','rtesel') # a temporary save of a feature class queried
Traceback (most recent call last):
File "D:\MyFiles\HWYAP\WebUpdate\UniqueProjectIdsSocrataMap.py", line 585, in <module>
rteFCSel = fcrte.save('in_memory','rtesel')
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\feature.py", line 1113, in save
temp_file = os.path.join(temp_dir, "%s.json" % uuid.uuid4().hex)
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\uuid.py", line 761, in uuid4
return UUID(bytes=os.urandom(16), version=4)
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\uuid.py", line 153, in __init__
if [hex, bytes, bytes_le, fields, int].count(None) != 4:
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\uuid.py", line 153, in __init__
if [hex, bytes, bytes_le, fields, int].count(None) != 4:
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\bdb.py", line 88, in trace_dispatch
return self.dispatch_line(frame)
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\bdb.py", line 112, in dispatch_line
self.user_line(frame)
File "D:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\idlelib\debugger.py", line 24, in user_line
self.gui.interaction(message, frame)
AttributeError: 'UUID' object has no attribute 'int'
This has never happened before. Would someone please help with this issue. As a workaround, may have to set a side a directory but wanted to ensure the code to be flexible and write to whatever scratch or temp space available on a computer instead of looking for a specific place or directory locally.
Any help is welcome.