<?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: Custom Steps in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895986#M11103</link>
    <description>Please demonstrate your code so that we can truly help you.</description>
    <pubDate>Wed, 27 Sep 2023 03:12:19 GMT</pubDate>
    <dc:creator>adam633_SAS</dc:creator>
    <dc:date>2023-09-27T03:12:19Z</dc:date>
    <item>
      <title>Custom Steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895860#M11101</link>
      <description>&lt;P&gt;How to install a new python library to be used in the custom step ?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Custom step Error.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88341iAE1C31D74CDA76F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Custom step Error.png" alt="Custom step Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 10:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895860#M11101</guid>
      <dc:creator>Mostafa11</dc:creator>
      <dc:date>2023-09-26T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895908#M11102</link>
      <description>&lt;P&gt;Show the code that generated those errors.&lt;/P&gt;
&lt;P&gt;Best is to include a LOG entry if created. Include code along with all the notes, warnings or errors as well.&lt;/P&gt;
&lt;P&gt;Copy the text and paste into a text box opened on the forum with the &amp;lt;/&amp;gt; icon that appears above the message window to preserve formatting. Also if we have actual text and want to suggest a syntax change we&amp;nbsp; can copy/edit/paste text that is not possible with pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your picture of the errors includes a reference to the macro variable &amp;amp;temp_python you need to show what the definition of that macro variable is and perhaps even how it was created. The error message implies that you used the macro variable somewhere SAS expects to encounter a file name that must exist before the code runs. Apparently that file does not actually exist. So make sure it exists or fix the contents of the macro variable.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895908#M11102</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-26T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895986#M11103</link>
      <description>Please demonstrate your code so that we can truly help you.</description>
      <pubDate>Wed, 27 Sep 2023 03:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895986#M11103</guid>
      <dc:creator>adam633_SAS</dc:creator>
      <dc:date>2023-09-27T03:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895999#M11104</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mostafa11_0-1695796186089.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88365i0D3910C7D38083C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mostafa11_0-1695796186089.png" alt="Mostafa11_0-1695796186089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I run it again I have got this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Unhandled Python exception.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 4&lt;BR /&gt;!pip install tabula-py&lt;BR /&gt;^&lt;BR /&gt;SyntaxError: invalid syntax&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PYTHON used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/895999#M11104</guid>
      <dc:creator>Mostafa11</dc:creator>
      <dc:date>2023-09-27T06:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Steps</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/896010#M11105</link>
      <description>&lt;P&gt;I don't have access to Viya 4 so bear with me.&lt;/P&gt;
&lt;P&gt;According to the documentation it looks like you need to use a SAS program. From your screen shot it looks like you are in a Python wrapper editor kinda, which I guess might work...?&lt;/P&gt;
&lt;P&gt;Regardless, the log tells us that your code executed in PROC PYTHON, and somehow your syntax i incorrect.&lt;/P&gt;
&lt;P&gt;It would be interesting to see the complete code with PROC PYTHON.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Custom-Steps/m-p/896010#M11105</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-09-27T09:48:54Z</dc:date>
    </item>
  </channel>
</rss>

