<?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: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064437#M6164</link>
    <description>&lt;P&gt;ArcGIS Server has a "hidden" python 3 environment, that's why you can publish web tools to it from ArcGIS Pro. but this python 3 environment does not include all the packages you have in the ArcGIS Pro Python environment.&amp;nbsp; You can think this is a stripped down version of the python environment coming with your ArcGIS Pro....&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you run your script in ArcGIS Server? if you tried sharing a web tool from ArcGIS Pro and it did not work, then I guess some packages you are using in your script are missing in the ArcGIS Server Python 3 environment.&lt;/P&gt;&lt;P&gt;If you could achieve the same function in ArcMap, definitely try ArcMap, as the 2.7.x environment is default environment for ArcGIS Server 10.8.x, you'll have a better chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 00:55:29 GMT</pubDate>
    <dc:creator>simoxu</dc:creator>
    <dc:date>2021-06-03T00:55:29Z</dc:date>
    <item>
      <title>Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064160#M6161</link>
      <description>&lt;P&gt;I created a python script in model builder in ArcGIS Pro and tried to run it on ArcGIS Server 10.8.1, only to find out Server only uses Python 2.7 and Pro outputs the script in 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am considering attempting to recreate the script in ArcMap 10.7 model builder to get around this problem since I read that ArcMap outputs to 2.7.x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering if my theory is true?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 16:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064160#M6161</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-06-02T16:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064437#M6164</link>
      <description>&lt;P&gt;ArcGIS Server has a "hidden" python 3 environment, that's why you can publish web tools to it from ArcGIS Pro. but this python 3 environment does not include all the packages you have in the ArcGIS Pro Python environment.&amp;nbsp; You can think this is a stripped down version of the python environment coming with your ArcGIS Pro....&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you run your script in ArcGIS Server? if you tried sharing a web tool from ArcGIS Pro and it did not work, then I guess some packages you are using in your script are missing in the ArcGIS Server Python 3 environment.&lt;/P&gt;&lt;P&gt;If you could achieve the same function in ArcMap, definitely try ArcMap, as the 2.7.x environment is default environment for ArcGIS Server 10.8.x, you'll have a better chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 00:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064437#M6164</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2021-06-03T00:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064447#M6165</link>
      <description>&lt;P&gt;That's super interesting about the "hidden" python environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the .py script I created from ArcMap through a .bat file that calls the python.exe and uses the script path as the argument.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the script works... running into some bugs though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep y'all posted!&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 01:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064447#M6165</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-06-03T01:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064471#M6167</link>
      <description>&lt;P&gt;Maybe I should be more accurate, It's not "hidden", it's just not the default python environment.&lt;/P&gt;&lt;P&gt;You can find it here, depending on your ArcGIS Server installation&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 02:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064471#M6167</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2021-06-03T02:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064763#M6169</link>
      <description>&lt;P&gt;Thanks so much! I will for sure try it and let you know!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 17:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064763#M6169</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-06-03T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064781#M6171</link>
      <description>&lt;P&gt;I get this&amp;nbsp; (see attached screenshot) when I try to access the python.exe in that folder... I can follow the steps on the link they have there, but I am just worried it might mess something up since this is the production server... is that fear unfounded?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 18:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064781#M6171</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-06-03T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run a python script I made in model builder in ArcMap 10.7 on ArcGIS Server 10.8.1?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064977#M6173</link>
      <description>&lt;P&gt;If you don't change the python environment, it should be fine.&lt;/P&gt;&lt;P&gt;But the safest way is to publish a web tool via ArcGIS Pro, it will use the Python3 environment on the server.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 02:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-run-a-python-script-i-made-in-model-builder/m-p/1064977#M6173</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2021-06-04T02:53:41Z</dc:date>
    </item>
  </channel>
</rss>

