Solved! Go to Solution.
>>> sys.path
['C:\\Python27\\ArcGISx6410.2', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\QATest\\py\\pyharness', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ArcGIS10.2\\Lib', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'c:\\gpServices\\Sanity\\queryLayer', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Python27\\ArcGIS10.2', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts']
The two .PTH files are fine. 64bit BG and Server share 64bit Python.
Whats the error you get while importing arcpy?
It looks like you've done the sys.path print from the Python window in ArcMap?
Do you have Python entries in your actual PATH environment variable?
Do you have a PYTHONPATH environment variable pointing at something?
Are you running a script tool out of process? If so, can you try running in process?
Any chance your script is calling subprocess or multiprocess?
That is, something in your script is making threads or other processes or even doing a os.command?
That is, something in your script is making threads or other processes or even doing a os.command?