<?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: SAS(PC version)/Python connectivity issue using Anaconda in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565908#M16481</link>
    <description>&lt;P&gt;Hey, that's great. Java 7 and 8 work best. In Java9, the Corba module, which IOM depends on isn't loaded by default, though it's still in there. You can see the workaround for the problem that causes here in #2&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/troubleshooting.html#classpath-problems" target="_blank"&gt;https://sassoftware.github.io/saspy/troubleshooting.html#classpath-problems&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Java10 no longer ships that, so it won't work; saspy issue here&amp;nbsp;&lt;A href="https://github.com/sassoftware/saspy/issues/206" target="_blank"&gt;https://github.com/sassoftware/saspy/issues/206&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But, there is a working solution to that, in house. I don't know when that will be available though. I'll touch base with them again to see where they are with that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 16:14:34 GMT</pubDate>
    <dc:creator>sastpw</dc:creator>
    <dc:date>2019-06-13T16:14:34Z</dc:date>
    <item>
      <title>SAS(PC version)/Python connectivity issue using Anaconda</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/564963#M16441</link>
      <description>&lt;P&gt;I&amp;nbsp;have downloaded and installed Anaconda and successfully ran below in the terminal&amp;nbsp;from Jupyter Notebook:&lt;BR /&gt;pip install saspy&lt;/P&gt;&lt;P&gt;pip install sas-kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I tried to connect to SAS after&lt;BR /&gt;import os&lt;BR /&gt;import sys&lt;BR /&gt;import saspy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using:&lt;/P&gt;&lt;PRE&gt;sas = saspy.SASsession(cfgname = 'winlocal')&lt;/PRE&gt;&lt;P&gt;I am getting Java Error:&lt;/P&gt;&lt;P&gt;Java Error:&lt;BR /&gt;java.lang.NoClassDefFoundError: com/sas/services/connection/ConnectionFactoryException&lt;BR /&gt;at java.lang.Class.getDeclaredMethods0(Native Method)&lt;BR /&gt;at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)&lt;BR /&gt;at java.lang.Class.getMethod0(Class.java:2774)&lt;BR /&gt;at java.lang.Class.getMethod(Class.java:1663)&lt;BR /&gt;at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)&lt;BR /&gt;at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: com.sas.services.connection.ConnectionFactoryException&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:366)&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;BR /&gt;... 6 more&lt;BR /&gt;Exception in thread "main"&lt;/P&gt;&lt;P&gt;Subprocess failed to start. Double check your settings in sascfg_personal.py file.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I have read lots of posts and made sure below:&lt;BR /&gt;1.added the &lt;FONT color="#454545" size="3"&gt;file &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#404040" face="Calibri,Calibri" size="3"&gt;sspiauth.dll &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#404040" size="3"&gt;to&amp;nbsp;the Path variable&lt;BR /&gt;2. Below are in the sascfg.py file:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#404040" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS_config_names=['winlocal']&lt;BR /&gt;3.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;cpW  =  "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\log4j.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\sas.core.jar"
cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar"&lt;/PRE&gt;&lt;PRE&gt;winlocal = {'java'      : 'java',
            'encoding'  : 'windows-1252',
            'classpath' : cpW
            }&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#404040" size="3"&gt;also I am not sure why "sascfg_personal.py" matters, I can't locate the sascfg_personal.py, but only modified sascfg.py&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#404040" size="3"&gt;Can anyone help with the java error, thanks!&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 17:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/564963#M16441</guid>
      <dc:creator>KSAS56</dc:creator>
      <dc:date>2019-06-10T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS(PC version)/Python connectivity issue using Anaconda</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565299#M16458</link>
      <description>&lt;P&gt;What version of Java do you have? The &lt;SPAN&gt;NoClassDefFoundError seems strange, if the jars you're using are from a real SAS 9.4 install, as it appears based upon the files in your classpath. BTW, you don't put the sspiauth.dll file itself in the path, but rather the directory it's in. Though, that doesn't appear to be the problem at this point.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, as for the sascfg_personal.py, that is so when you update saspy in the future, and the example sascfg.py file has been updated, it will overwrite the one you've editied. But sascfg_personal.py won't ever be replaced or messed with.&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/install.html#sascfg-personal-py" target="_blank"&gt;https://sassoftware.github.io/saspy/install.html#sascfg-personal-py&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, what version of java, and can you confirm the jars you're pointing at are a SAS 9.4 install?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565299#M16458</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2019-06-11T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS(PC version)/Python connectivity issue using Anaconda</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565903#M16480</link>
      <description>The Java was the issue, I have an old version of Java and I need the latest one for it to work properly, thanks!</description>
      <pubDate>Thu, 13 Jun 2019 16:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565903#M16480</guid>
      <dc:creator>KSAS56</dc:creator>
      <dc:date>2019-06-13T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS(PC version)/Python connectivity issue using Anaconda</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565908#M16481</link>
      <description>&lt;P&gt;Hey, that's great. Java 7 and 8 work best. In Java9, the Corba module, which IOM depends on isn't loaded by default, though it's still in there. You can see the workaround for the problem that causes here in #2&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/troubleshooting.html#classpath-problems" target="_blank"&gt;https://sassoftware.github.io/saspy/troubleshooting.html#classpath-problems&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Java10 no longer ships that, so it won't work; saspy issue here&amp;nbsp;&lt;A href="https://github.com/sassoftware/saspy/issues/206" target="_blank"&gt;https://github.com/sassoftware/saspy/issues/206&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But, there is a working solution to that, in house. I don't know when that will be available though. I'll touch base with them again to see where they are with that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 16:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-PC-version-Python-connectivity-issue-using-Anaconda/m-p/565908#M16481</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2019-06-13T16:14:34Z</dc:date>
    </item>
  </channel>
</rss>

