4

I often run scripts now with 64 bit background processing enabled but when I want to use certain tools like Xtools table to text I have to turn it off as these tools are 32 bit. Is there a way to switch this within a script say... (Geoprocessing_Enable is fictional)

#start at 64 then change to 32 for Xtools
arcpy.Geoprocessing_Enable(32)

arcpy.XToolsPro_Table2Text(in, out, fields)

#go back to 64 after 32 bit tool ran successfully
arcpy.Geoprocessing_Enable(64)

Is there anything equivalent to doing this?

  • This is a question better asked on stackoverflow.com... – awesomo Apr 24 '13 at 16:38
  • I disagree. As the OP's question is directly related to ArcPy, this is more than appropriate to this exchange. – Erik Anderson Jan 20 '16 at 17:47
8

No. Once you've started executing your script at prompt, you're in either the 32 or 64 bit space. [yes you could do some sort of multiprocess or os.system call out to 32 or 64bit, but thats at your own risk and I've heard nothing but problems when people do this.]

See this blog article about specifying what "bits" to run against. In short, you'll need to break up your script into pieces and call them against the version of Python they work with.

  • KHibma, thanks. Figure I'll stay in 32 for all scripts rather than split. Most of my big merges(joins) are in Stata64 .do files now. – GIS Danny Apr 24 '13 at 18:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.