<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27945#M985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you running a script tool out of process? If so, can you try running in process?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I had the 'Run Python script in process' option in the Source tab unchecked. However, checking it makes no difference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 19:31:00 GMT</pubDate>
    <dc:creator>AlanStewart</dc:creator>
    <dc:date>2013-05-09T19:31:00Z</dc:date>
    <item>
      <title>Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27941#M981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have both installed on the same box. There are DTBGGP64.pth and a Server10.1.pth files in the C:\Python27\ArcGISx6410.1\Lib\site-packages folder. The first points to the the C:\Program Files (x86)\ArcGIS\Desktop10.1\bin64 folder and the second points to the C:\Program Files\ArcGIS\Server\bin folder. This seems to be a conflict.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enable background processing and debug into a Python geoprocessing task it fails when arcpy is imported. Printing sys.path reveals:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; sys.path: ['C:\\ARCGIS~1\\GEOPRO~1\\TGT_GP~1\\Scripts', 'C:\\ARCGIS~1\\GEOPRO~1\\TGT_GP~1\\Scripts', 'c:\\program files (x86)\\arcgis\\desktop10.1\\bin', 'c:\\program files (x86)\\arcgis\\desktop10.1\\ArcPy', 'c:\\program files (x86)\\arcgis\\desktop10.1\\ArcToolbox\\Scripts', 'C:\\arcgisserver\\geoprocessing\\TGT_GPExporter\\ExportGeoPDF.tbx', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ARCGIS~1.1\\DLLs', 'C:\\Python27\\ARCGIS~1.1\\lib', 'C:\\Python27\\ARCGIS~1.1\\lib\\plat-win', 'C:\\Python27\\ARCGIS~1.1\\lib\\lib-tk', 'C:\\Python27\\ARCGIS~1.1\\Lib\\SITE-P~1\\PYTHON~1', 'C:\\Python27\\ARCGIS~1.1', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\bin64', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\win32', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\Pythonwin', 'C:\\Program Files\\ArcGIS\\Server\\bin', 'C:\\Program Files\\ArcGIS\\Server\\arcpy', 'C:\\Program Files\\ArcGIS\\Server\\ArcToolbox\\Scripts']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that it is pointing to the 32-bit Desktop bin folder, before the 64-bit Desktop bin64 folder is pointed to. Where is all these extra path entries coming from?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to publish the geoprocessing task to Server. In the past we have used ArcMap on the Server box in authoring our web applications, which call a geoprocessing task. Is this not possible anymore?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 16:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27941#M981</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-09T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27942#M982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The two .PTH files are fine. 64bit BG and Server share 64bit Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats the error you get while importing arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you've done the sys.path print from the Python window in ArcMap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres the output of print sys.path in the Python window. Not quite the same as yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;BR /&gt;['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']&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have Python entries in your actual PATH environment variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a PYTHONPATH environment variable pointing at something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 17:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27942#M982</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2013-05-09T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27943#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The two .PTH files are fine. 64bit BG and Server share 64bit Python.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as any differences between the versions of the arcgisscripting.pyd files at both locations don't cause problems running the same script in Server and ArcMap BGGP64.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Whats the error you get while importing arcpy?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Unhandled exception while debugging...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\ARCGIS~1\GEOPRO~1\TGT_GP~1\Scripts\ExportGeoPdfScript.py", line 47, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\__init__.py", line 21, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.geoprocessing import gp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: DLL load failed: %1 is not a valid Win32 application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It looks like you've done the sys.path print from the Python window in ArcMap?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, I inserted it into my script immediately before the import statement for arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have Python entries in your actual PATH environment variable?&lt;BR /&gt;Do you have a PYTHONPATH environment variable pointing at something?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No and no.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27943#M983</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-09T19:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27944#M984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The arcgisscripting.pyd is the same file used in both Server and 64bit BG.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats the error I suspected you were getting. Its 32bit trying to call into 64bit. Some wire, somewhere has been crossed and its trying to use the wrong libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you running a script tool out of process? If so, can you try running in process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27944#M984</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2013-05-09T19:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27945#M985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you running a script tool out of process? If so, can you try running in process?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I had the 'Run Python script in process' option in the Source tab unchecked. However, checking it makes no difference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27945#M985</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-09T19:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27946#M986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running out of ideas....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any chance your script is calling subprocess or multiprocess?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is, something in your script is making threads or other processes or even doing a os.command?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27946#M986</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2013-05-09T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27947#M987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any chance your script is calling subprocess or multiprocess?&lt;BR /&gt;That is, something in your script is making threads or other processes or even doing a os.command?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use os.getpid(). Why would that cause a problem? I'll try it without.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the entire script, up to the point where it blows up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import shutil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import uuid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import platform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import getpass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print("@@@@@@@@@@@@@@@@@@@@@@")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print("Python version: " + platform.python_version())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print("Python compiler: " + platform.python_compiler())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print("Python interpreter: " + string.join(platform.architecture()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is64Bits = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if sys.maxsize &amp;gt; 2**32:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is64Bits = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print("Is a 64 bit architecutre: %s" % is64Bits)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print("PID: %s" % os.getpid())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print("User: " + getpass.getuser())&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print("sys.path: %s" % sys.path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the output in the PythonWin 64-bit debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PythonWin 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; @@@@@@@@@@@@@@@@@@@@@@&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Python version: 2.7.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Python compiler: MSC v.1500 64 bit (AMD64)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Python interpreter: 64bit WindowsPE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Is a 64 bit architecutre: True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; PID: 3036&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; User: Alan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; sys.path: ['C:\\ARCGIS~1\\GEOPRO~1\\TGT_GP~1\\Scripts', 'C:\\ARCGIS~1\\GEOPRO~1\\TGT_GP~1\\Scripts', 'c:\\program files (x86)\\arcgis\\desktop10.1\\bin', 'c:\\program files (x86)\\arcgis\\desktop10.1\\ArcPy', 'c:\\program files (x86)\\arcgis\\desktop10.1\\ArcToolbox\\Scripts', 'C:\\arcgisserver\\geoprocessing\\TGT_GPExporter\\ExportGeoPDF.tbx', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ARCGIS~1.1\\DLLs', 'C:\\Python27\\ARCGIS~1.1\\lib', 'C:\\Python27\\ARCGIS~1.1\\lib\\plat-win', 'C:\\Python27\\ARCGIS~1.1\\lib\\lib-tk', 'C:\\Python27\\ARCGIS~1.1\\Lib\\SITE-P~1\\PYTHON~1', 'C:\\Python27\\ARCGIS~1.1', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.1\\bin64', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\win32', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\ARCGIS~1.1\\lib\\site-packages\\Pythonwin', 'C:\\Program Files\\ArcGIS\\Server\\bin', 'C:\\Program Files\\ArcGIS\\Server\\arcpy', 'C:\\Program Files\\ArcGIS\\Server\\ArcToolbox\\Scripts']&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Unhandled exception while debugging...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\ARCGIS~1\GEOPRO~1\TGT_GP~1\Scripts\ExportGeoPdfScript.py", line 45, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\__init__.py", line 21, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.geoprocessing import gp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: DLL load failed: %1 is not a valid Win32 application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Dbg]&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27947#M987</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-09T19:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27948#M988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That is, something in your script is making threads or other processes or even doing a os.command?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took out all of the imports other than sys and string and any code dependent on the removed imports. The end result is the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27948#M988</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-09T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27949#M989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added the BGGP64 update to another machine with only Desktop 10.1 SP1 installed and am seeing the exact same issue, so it's not the presence of ArcGIS Server that is messing things up. Both machines are Win 7.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 17:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27949#M989</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-10T17:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27950#M990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Clearly you do have 32-bit paths in your sys.path that do not belong there when you are running the 64-bit python. The question is where they are coming from. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sure looks like something you'd want to open a support incident to get to the bottom of the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 03:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27950#M990</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-05-11T03:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27951#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It has miraculously started working. I did nothing other than update the legacy "import arcgisscripting... arcgisscripting.create()" to "import arcpy" and rearranging some of the embedded debugging messages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27951#M991</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-13T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27952#M992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may have this figured out. For me the breakage seems to only happen when using the 64-bit version of PythonWin and only when ArcMap opens PythonWin. I.e., Pythonwin is closed when the debug session is started from ArcMap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27952#M992</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-14T12:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27953#M993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI tells me the issue also occurs when ArcMap is set to use 64-bit PythonWin as the Python editor. NIM091620 has been created to address the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 18:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27953#M993</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2013-05-14T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is ArcMap 10.1 64-bit background geoprocessing compatible with ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27954#M994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Based on the information your presented here and the bug that was logged, we now know its because of the path and its contents when you launch an IDE from ArcMap (right click on script &amp;gt; edit for example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you launch the IDE by itself, the path is fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When launched from ArcMap you'll see the 32bit path in the sys.path: c:\\program files (x86)\\arcgis\\desktop10.1\\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a hack, you could do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
sys.path.remove('c:\\program files (x86)\\arcgis\\desktop10.1\\bin')
import arcpy
#rest of your script&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you're using an IDE that you set the Python interrupter, like WING for example, you can qualify which Python it should run against (like the 32bit one)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or using a 32bit IDE will work fine as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-arcmap-10-1-64-bit-background-geoprocessing/m-p/27954#M994</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2021-12-10T21:07:50Z</dc:date>
    </item>
  </channel>
</rss>

