import sys sys.path.remove('c:\\program files (x86)\\arcgis\\desktop10.1\\bin') import arcpy #rest of your script
That is, something in your script is making threads or other processes or even doing a os.command?
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?
Are you running a script tool out of process? If so, can you try running in process?
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?
>>> 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']
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.