Tkinter, ArcPy and Threading

2651
2
02-25-2014 10:45 AM
TangoPapa
New Contributor
Hey All,

Just wanted to get a solid answer from someone.  My question is very similar to:

http://forums.arcgis.com/threads/63390-Bug-with-arcpy-in-a-thread (2012)

I'm trying to intermittently inject data into an SDE in Python (via a Tkinter interface).  I would like to start the function in a thread so that the UI will not be locked up but everytime I call InsertCursor, for example, arcpy.InsertCursor(self.featureClassList[5]) within a Thread I get a catastrophic crash...  Is this an impossible task?

T
Tags (2)
0 Kudos
2 Replies
moriapedhazur
New Contributor

Encountered the same problem, any answer?

0 Kudos
by Anonymous User
Not applicable

ArcGIS Classes (Featureclass, Layers, Fields, Maps, etc.,.) in arcpy do not play well with being transferred between python threads due to python's pickling. I haven't met anyone yet that has created their own pickling class to transfer the esri classes either. I think if you can figure out how to pickle the arcpy data class being transferred, you'll be able to get closer to a solution. 

0 Kudos