<?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 Python Scripts with Input and Output in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89156#M39590</link>
    <description>&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to execute a Python script and take back the output it gives (may be text).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Earlier I downloaded the latest Environment utility having action "Start Process Read Stderr and Stdout".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I execute the script using the "Start Process" action it executes fine, but it is not able to accept any response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The new action is giving me error "Internal : Could not execute code stage because exception thrown by code stage: The specified executable is not a valid application for this OS platform."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having 64 bit Windows 10 laptop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.stdout.write('Returning from Python\n')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.stdout.flush()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.exit(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other way to it? I know writing to a file is an option, but I am taking it as a last resort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nikhil Sathe&lt;BR /&gt;Sr Consultant&lt;BR /&gt;Capgemini Technology Services&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Jan 2020 08:45:00 GMT</pubDate>
    <dc:creator>NikhilSathe</dc:creator>
    <dc:date>2020-01-06T08:45:00Z</dc:date>
    <item>
      <title>Python Scripts with Input and Output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89156#M39590</link>
      <description>&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to execute a Python script and take back the output it gives (may be text).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Earlier I downloaded the latest Environment utility having action "Start Process Read Stderr and Stdout".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I execute the script using the "Start Process" action it executes fine, but it is not able to accept any response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The new action is giving me error "Internal : Could not execute code stage because exception thrown by code stage: The specified executable is not a valid application for this OS platform."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having 64 bit Windows 10 laptop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.stdout.write('Returning from Python\n')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.stdout.flush()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.exit(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other way to it? I know writing to a file is an option, but I am taking it as a last resort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nikhil Sathe&lt;BR /&gt;Sr Consultant&lt;BR /&gt;Capgemini Technology Services&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jan 2020 08:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89156#M39590</guid>
      <dc:creator>NikhilSathe</dc:creator>
      <dc:date>2020-01-06T08:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python Scripts with Input and Output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89157#M39591</link>
      <description>As far as i know can't run python scripts in the compiler&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cohen&lt;BR /&gt;RPA Developer&lt;BR /&gt;&lt;BR /&gt;Romania&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jan 2020 11:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89157#M39591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-06T11:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python Scripts with Input and Output</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89158#M39592</link>
      <description>It sounds like you're trying to call a file that doesn't work to execute. I'm not super familiar with Python, but if I remember right, you probably need to call Python in the command line and pass the file as a parameter.&lt;BR /&gt;&lt;BR /&gt;Doing a quick google search, what I said above seems to make sense for Python's .py files.&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/57638802/the-specified-executable-is-not-a-valid-application-for-this-os-platform" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/57638802/the-specified-executable-is-not-a-valid-application-for-this-os-platform&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Try calling CMD and passing whatever arguments are expected such as the&amp;nbsp; "/C python A.py" etc. as the post on stackoverflow indicates.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jan 2020 12:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Python-Scripts-with-Input-and-Output/m-p/89158#M39592</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-01-06T12:38:00Z</dc:date>
    </item>
  </channel>
</rss>

