<?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: GP Services fails while upgrading server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449083#M35179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i look into the ArcGIS Server Manager, i can see that the Spatial Analyst is Authorized for the version 10.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2016 06:34:59 GMT</pubDate>
    <dc:creator>Jose_FrancisK_J</dc:creator>
    <dc:date>2016-01-06T06:34:59Z</dc:date>
    <item>
      <title>GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449081#M35177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have some custom GP services which were successfully working in an ArcGIS Server 10.1. ArcGIS Desktop was also available in that machine. Recently the desktop has been uninstalled and the server has been upgraded to 10.3. Now these GP services are not working. Following is the error log I got from the ArcGIS Server Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;Traceback (most recent call last): File "D:\arcgisserver\directories\arcgissystem\arcgisinput\hello.GPServer\extracted\v101\my_toolboxes\hello.py", line 8, in import arcpy, sys, os, datetime, glob, ConfigParser File "c:\program files\arcgis\server\arcpy\arcpy\__init__.py", line 31, in import arcpy.sa File "c:\program files\arcgis\server\arcpy\arcpy\sa\__init__.py", line 24, in from . import Functions as __Functions ImportError: cannot import name Functions Failed to execute (hello). Failed to execute (Hello).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt this may be due to the installation problem with python. So I tried to import arcpy in a sample python program and got the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp; File "module1.py", line 19, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 31, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy.sa&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\sa\__init__.py", line 29, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __all__ += __ParameterClasses.__all__&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;AttributeError: 'module' object has no attribute '__all__'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sys.path yields the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;EM&gt;['', 'C:\\Python27\\ArcGISx6410.3\\Lib\\site-packages', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ArcGISx6410.3\\DLLs', 'C:\\Python27\\ArcGISx6410.3\\lib', 'C:\\Python27\\ArcGISx6410.3\\lib\\plat-win', 'C:\\Python27\\ArcGISx6410.3\\lib\\lib-tk', 'C:\\Python27\\ArcGISx6410.3', 'C:\\Program Files\\ArcGIS\\Server\\bin', 'C:\\Program Files\\ArcGIS\\Server\\arcpy', 'C:\\Program Files\\ArcGIS\\Server\\ArcToolBox\\Scripts']&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me in identifying the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 13:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449081#M35177</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-01-05T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449082#M35178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be failing when it's trying to import arcpy.sa.&amp;nbsp; Did you have that extension licensed at 10.1 for Server, but it's not at 10.3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 18:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449082#M35178</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-01-05T18:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449083#M35179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i look into the ArcGIS Server Manager, i can see that the Spatial Analyst is Authorized for the version 10.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 06:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449083#M35179</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-01-06T06:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449084#M35180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14520968412737584 jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14520968412737584"&gt;&lt;P&gt;from arcpy.sa import *&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of "import arcpy.sa" in your script, assuming that is what you are using to create Run and then create the GP service. Also, I'm wondering if you need a&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1452096830528949" data-renderedposition="108_8_912_16" jivemacro_uid="_1452096830528949"&gt;&lt;P&gt;arcpy.CheckOutExtension("spatial")&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not created a GP service that uses sa yet, so just a stab in the dark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449084#M35180</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-01-06T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449085#M35181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" data-renderedposition="18_8_912_38" modifiedtitle="true"&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class="dp-highlighter"&gt;&lt;DIV class="bar"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;OL class="dp-py" start="1"&gt;&lt;LI class="alt"&gt;&lt;SPAN&gt;&lt;SPAN class="keyword"&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; arcpy.sa &lt;/SPAN&gt;&lt;SPAN class="keyword"&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; *&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" data-renderedposition="18_8_912_38" modifiedtitle="true"&gt;&lt;PRE class="python" style="display: none;"&gt;from arcpy.sa import *&lt;/PRE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;P&gt;This also yields the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My hello.py contains only the following lines of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;import sys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;def main():&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Hello world'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;if __name__ == '__main__':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy itself is creating the error. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3&amp;gt;python hello.py&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp; File "hello.py", line 2, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.sa import *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 31, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy.sa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Server\arcpy\arcpy\sa\__init__.py", line 29, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __all__ += __ParameterClasses.__all__&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;AttributeError: 'module' object has no attribute '__all__'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy.sa is executed from the &lt;SPAN style="color: #3a0699;"&gt;"C:\Program Files\ArcGIS\Server\arcpy\arcpy\__init__.py", line 31&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 05:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449085#M35181</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-01-07T05:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449086#M35182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran the code you have above in a python window within my pythin IDE (Wing) and had no issues. The error include the path&amp;nbsp; " &lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3&amp;gt;&lt;/SPAN&gt;"&amp;nbsp;&amp;nbsp; By any chance do you have GP 64-bit background processing installed?&amp;nbsp; If so, can you uninstall it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, it looks like it is a path issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 05:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449086#M35182</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-01-07T05:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: GP Services fails while upgrading server</title>
      <link>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449087#M35183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've checked with the GIS Server Admin and got a response that the GP 64-bit background processing is not installed in that machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the server, C:\Python27, there are 3 sub folders : "ArcGIS10.1", "ArcGISx6410.1" and "ArcGISx6410.3". Only the last one have the python.exe and other related files. The remaining 2 have the only the "Lib" folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sys.path yields the following paths:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3\Lib\site-packages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Windows\system32\python27.zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3\DLLs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3\lib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3\lib\plat-win&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3\lib\lib-tk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Python27\ArcGISx6410.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Program Files\ArcGIS\Server\bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Program Files\ArcGIS\Server\arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;C:\Program Files\ArcGIS\Server\ArcToolBox\Scripts&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 11:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-services-fails-while-upgrading-server/m-p/449087#M35183</guid>
      <dc:creator>Jose_FrancisK_J</dc:creator>
      <dc:date>2016-01-07T11:49:18Z</dc:date>
    </item>
  </channel>
</rss>

