<?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 Subprocess Call via ModelBuilder Not Working in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/subprocess-call-via-modelbuilder-not-working/m-p/859647#M1047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a small Python script written in 2.7 that sends a subprocess call to run another small python script written in 3.6 to export some maps.&amp;nbsp; While the scripts appear to work in a stand a lone environment, nothing seems to happen when I add the call script to my model.&amp;nbsp; It indicates that it was run, but nothing seems to be ran on the back in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my subprocess call script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;import subprocess,os&lt;BR /&gt;from subprocess import call&lt;/DIV&gt;&lt;DIV&gt;outPT = "C:/GIS/gisData/data/vector/sigacts/sigactsSIMS/output/DailyUpdate/provTripolitania.png"&lt;BR /&gt;exit_code = call('C://Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/pythonw.exe C://GIS/gisData/toolsNscripts/exportMaps_PRO_Daily.py')&lt;/DIV&gt;&lt;DIV&gt;if os.path.isfile(outPT):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "New file exists..."&lt;BR /&gt;else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "File not located..."&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot of the model and script in question" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/461609_modelbuilder.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why it will not run when in modelbuilder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2019 17:39:51 GMT</pubDate>
    <dc:creator>HaskettGeorge</dc:creator>
    <dc:date>2019-10-10T17:39:51Z</dc:date>
    <item>
      <title>Subprocess Call via ModelBuilder Not Working</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/subprocess-call-via-modelbuilder-not-working/m-p/859647#M1047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a small Python script written in 2.7 that sends a subprocess call to run another small python script written in 3.6 to export some maps.&amp;nbsp; While the scripts appear to work in a stand a lone environment, nothing seems to happen when I add the call script to my model.&amp;nbsp; It indicates that it was run, but nothing seems to be ran on the back in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my subprocess call script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;import subprocess,os&lt;BR /&gt;from subprocess import call&lt;/DIV&gt;&lt;DIV&gt;outPT = "C:/GIS/gisData/data/vector/sigacts/sigactsSIMS/output/DailyUpdate/provTripolitania.png"&lt;BR /&gt;exit_code = call('C://Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/pythonw.exe C://GIS/gisData/toolsNscripts/exportMaps_PRO_Daily.py')&lt;/DIV&gt;&lt;DIV&gt;if os.path.isfile(outPT):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "New file exists..."&lt;BR /&gt;else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "File not located..."&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot of the model and script in question" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/461609_modelbuilder.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why it will not run when in modelbuilder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/subprocess-call-via-modelbuilder-not-working/m-p/859647#M1047</guid>
      <dc:creator>HaskettGeorge</dc:creator>
      <dc:date>2019-10-10T17:39:51Z</dc:date>
    </item>
  </channel>
</rss>

