<?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: saspy Configuration for ODA Access in Developers</title>
    <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/852665#M6257</link>
    <description>&lt;P&gt;the 'java' default key location for mac is&amp;nbsp;'/usr/bin/java' so the line in your&amp;nbsp;sascfg_personal.py config file should be&lt;/P&gt;&lt;P&gt;'java' : '/usr/bin/java',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If for some reason you don't have java install I would install it via homebrew.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jan 2023 00:27:33 GMT</pubDate>
    <dc:creator>Jared_Duke</dc:creator>
    <dc:date>2023-01-08T00:27:33Z</dc:date>
    <item>
      <title>saspy Configuration for ODA Access</title>
      <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814481#M1442</link>
      <description>&lt;P&gt;I am trying to configure saspy to connect to SAS On Demand for Academics via Pycharm on Mac OS 12.3.1 (Monterey). I have set up sascfg_personal.py as directed &lt;A href="https://support.sas.com/ondemand/saspy.html" target="_self"&gt;here&lt;/A&gt;. See contents below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;SAS_config_names=['oda']
oda = {'java' : '/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home',
#US Home Region 1
'iomhost' : ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
#US Home Region 2
#'iomhost' : ['odaws01-usw2-2.oda.sas.com','odaws02-usw2-2.oda.sas.com'],
#European Home Region 1
#'iomhost' : ['odaws01-euw1.oda.sas.com','odaws02-euw1.oda.sas.com'],
#Asia Pacific Home Region 1
#'iomhost' : ['odaws01-apse1.oda.sas.com','odaws02-apse1.oda.sas.com'],
#Asia Pacific Home Region 2
#'iomhost' : ['odaws01-apse1-2.oda.sas.com','odaws02-apse1-2.oda.sas.com'],
'iomport' : 8591,
'authkey' : 'oda',
'encoding' : 'utf-8'
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When running:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;from saspy import SASsession
sas = saspy.SASsession()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error (no java error) with direction to run a few very long commands for diagnostic purposes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;The OS Error was:
No such file or directory
SAS Connection failed. No connection established. Double check your settings in sascfg_personal.py file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Long story short, when running the recommended commands in Terminal, all looks fine except:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;-bash: odaws02-usw2.oda.sas.com: command not found
-bash: odaws03-usw2.oda.sas.com: command not found
-bash: odaws04-usw2.oda.sas.com: command not found&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Apparently odaws01-usw2.oda.sas.com is found? I'm out of my depth in solving this issue and I'm grateful for any insight!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 20:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814481#M1442</guid>
      <dc:creator>patulin</dc:creator>
      <dc:date>2022-05-20T20:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: saspy Configuration for ODA Access</title>
      <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814483#M1443</link>
      <description>&lt;P&gt;Hey, the error you got is about java not being found.&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/troubleshooting.html#java-problems" target="_blank"&gt;https://sassoftware.github.io/saspy/troubleshooting.html#java-problems&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You show&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;'java' : '/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home',&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;for java, which isn't java, so that's for sure the first problem. Also, I would issue&lt;/P&gt;
&lt;P&gt;`import saspy'&lt;/P&gt;
&lt;P&gt;not&amp;nbsp;&lt;/P&gt;
&lt;P&gt;`from saspy import SASsession'&lt;/P&gt;
&lt;P&gt;Not sure where you saw that. Import the package.&lt;/P&gt;
&lt;P&gt;And set the java config to an actual java.exe (java executable; can't tell if you are on windows or what). You provided an authkey config value; did you put your credentials in the authinfo file (that the next thing once you point to a real java).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then give it another try.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 20:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814483#M1443</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2022-05-20T20:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: saspy Configuration for ODA Access</title>
      <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814500#M1444</link>
      <description>&lt;P&gt;I'm on a Mac, which is usually the source of my problems, so I don't have java.exe. Any idea what I'm looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 22:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814500#M1444</guid>
      <dc:creator>patulin</dc:creator>
      <dc:date>2022-05-20T22:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: saspy Configuration for ODA Access</title>
      <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814708#M1448</link>
      <description>&lt;P&gt;So, it won't have the windows .exe extension as part if it's filename, but Mac's can still have java installed, it's just the executable you need the path of. it would just be named java, in some directory where it's installed. I don't do 'I' things (Mac's are included in that), so I don't know where it would be installed or how you navigate the file system on that. I googled how to find the path to java on a mac and got this hit:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/15826202/where-is-java-installed-on-mac-os-x" target="_blank"&gt;https://stackoverflow.com/questions/15826202/where-is-java-installed-on-mac-os-x&lt;/A&gt;&amp;nbsp;along with plenty others. You ought to be able to find it on the filesystem if it's already installed, or just install it and then be able to see where it is.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 13:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/814708#M1448</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2022-05-23T13:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: saspy Configuration for ODA Access</title>
      <link>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/852665#M6257</link>
      <description>&lt;P&gt;the 'java' default key location for mac is&amp;nbsp;'/usr/bin/java' so the line in your&amp;nbsp;sascfg_personal.py config file should be&lt;/P&gt;&lt;P&gt;'java' : '/usr/bin/java',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If for some reason you don't have java install I would install it via homebrew.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 00:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/saspy-Configuration-for-ODA-Access/m-p/852665#M6257</guid>
      <dc:creator>Jared_Duke</dc:creator>
      <dc:date>2023-01-08T00:27:33Z</dc:date>
    </item>
  </channel>
</rss>

