<?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: Python path after installing ArcGIS Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576890#M45257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why calling my script from a Scheduled Task (no experience at all with this), would make any difference.&lt;/P&gt;&lt;P&gt;In the external Python IDE (Wing), I can set the project properties to point directly to the correct Python version (c:\Program Files (x86)\ArcGIS\Pro 1.4\bin\Python\envs\arcgispro-py3\python.exe).&amp;nbsp;This is not the problem.&lt;/P&gt;&lt;P&gt;It worked without any problem earlier.&lt;/P&gt;&lt;P&gt;There are some other settings or parameters - which I cannot find - which are causing this behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 15:05:41 GMT</pubDate>
    <dc:creator>MarcWouters</dc:creator>
    <dc:date>2017-08-28T15:05:41Z</dc:date>
    <item>
      <title>Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576883#M45250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been running &amp;nbsp;scripts using Python 3.5 from ArcGIS Pro 1.4&lt;BR /&gt;(C:\Program Files (x86)\ArcGIS\Pro 1.4\bin\Python\envs\arcgispro-py3\python.exe) without any problem.&lt;/P&gt;&lt;P&gt;Last week I installed ArcGIS Server (ArcGIS Enterprise), and now my scripts all fail, starting with the import arcpy statement. Root cause&amp;nbsp;error is&amp;nbsp;&lt;SPAN style="color: #000066; font-weight: 600;"&gt;builtins.NameError: name 'arcgisscripting' is not defined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;File&amp;nbsp;&lt;SPAN style="color: #000066; font-weight: 600;"&gt;"c:\Program Files (x86)\ArcGIS\Pro 1.4\Resources\ArcPy\arcpy\geoprocessing\_base.py"&lt;/SPAN&gt;, line 62, in &lt;SPAN style="color: #227722; font-weight: 600;"&gt;__init__&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;self._gp = arcgisscripting.create(11.0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000066; font-weight: 600; font-size: large;"&gt;builtins.NameError: name 'arcgisscripting' is not defined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What have I done wrong ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help is welcome !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 11:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576883#M45250</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-08-28T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576884#M45251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't do anything wrong, you just installed an additional Python distribution that altered some of the system settings.&amp;nbsp; I can't recall right off the top all of the various settings that a new Python distribution can alter, but you will find plenty of information searching the internet.&amp;nbsp; Are the scripts that are failing being called from within ArcGIS Pro or are you running them outside of the application?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576884#M45251</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-08-28T13:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576885#M45252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;The scripts are failing both in stand-alone mode, as being called from ArcGIS Pro (I just change the input part).&lt;/P&gt;&lt;P&gt;You propose searching on the Internet, but I have no clue what to look for : I have zero to none experience with Python distributions, I simply installed it right from the ArcGIS downloads.&lt;/P&gt;&lt;P&gt;What should I look for specifically ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576885#M45252</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-08-28T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576886#M45253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have to dig a little deeper when I find some time.&amp;nbsp; As odd as this may sound, since you don't know much about Python, it might be quicker to uninstall Pro and Enterprise and re-install them in the opposite order to see if Pro is better about setting Python-related variables after Enterprise is installed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576886#M45253</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-08-28T13:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576887#M45254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a snippet of how you call your script from outside of Pro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576887#M45254</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-08-28T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576888#M45255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can provide you a short snippet, but actually, it fails already at the 1st line !!!!&lt;/P&gt;&lt;P&gt;Therefor it doesn't matter whether I call it from ArcGIS Pro, or outside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it's a "quick-and-dirty" script, lot's of stuff is hard coded, and changed for each run.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# start of my script -&amp;gt; fails at this 1st line already
import arcpy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
import os

import manageTables
import readProperties

# Option 1 : Get parameters from ArcGIS Pro toolbox
# inputProject = arcpy.GetParameterAsText(0)
# outputFolder = arcpy.GetParameterAsText(1)
# Option 2 : Get parameters hard coded
inputProject = r"Path/to/my/input/file"
outputFolder = r"Path/to/my/output/folder"

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576888#M45255</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2021-12-12T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576889#M45256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My recommendation would be to call your python script from a Windows Scheduled Task where you can call the python exe explicitly from the correct Pro python install location, thereby bypassing the current automatic call to the AGS version of python. &amp;nbsp;I do this on a server where I have both Desktop (32-bit) python and AGS (64-bit) python installed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576889#M45256</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-08-28T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576890#M45257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why calling my script from a Scheduled Task (no experience at all with this), would make any difference.&lt;/P&gt;&lt;P&gt;In the external Python IDE (Wing), I can set the project properties to point directly to the correct Python version (c:\Program Files (x86)\ArcGIS\Pro 1.4\bin\Python\envs\arcgispro-py3\python.exe).&amp;nbsp;This is not the problem.&lt;/P&gt;&lt;P&gt;It worked without any problem earlier.&lt;/P&gt;&lt;P&gt;There are some other settings or parameters - which I cannot find - which are causing this behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 15:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576890#M45257</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-08-28T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576891#M45258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running it externally, it probably is unaware that you have an ArcPro license.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/accessing-licenses-and-extensions-in-python.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/accessing-licenses-and-extensions-in-python.htm"&gt;Accessing licenses and extensions in Python—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Althought the help is for ArcPro, the CheckProduct (which checks for a license) does not appear to have an option for Pro, but that might be a place to start. &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/checkproduct.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/checkproduct.htm"&gt;CheckProduct—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 15:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576891#M45258</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-08-28T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python path after installing ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576892#M45259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up re-installing ArcGIS Pro (version 2.0), and 'miraculously' everything worked again as normal.&lt;/P&gt;&lt;P&gt;Apparently you can avoid situations like this with Conda, but I am a newby in the Python world, and I'm satisfied with the current solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-path-after-installing-arcgis-server/m-p/576892#M45259</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-08-31T11:00:41Z</dc:date>
    </item>
  </channel>
</rss>

