<?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: Connecting SAS to Jupyter kernell. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/480870#M124304</link>
    <description>Fixed it!&lt;BR /&gt;&lt;BR /&gt;I just had to comment out the key concerning "javaparms" from the winlocal dictionary in sascfg.py.&lt;BR /&gt;&lt;BR /&gt;Big help from Tom Weber in solving this. Thanks.</description>
    <pubDate>Tue, 24 Jul 2018 17:48:40 GMT</pubDate>
    <dc:creator>Autotelic</dc:creator>
    <dc:date>2018-07-24T17:48:40Z</dc:date>
    <item>
      <title>Connecting SAS to Jupyter kernell.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/480752#M124260</link>
      <description>&lt;P&gt;Hello. I don't know&amp;nbsp;in what board I should&amp;nbsp;post this, there doesn't seem to be a good fit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to work on SAS from a jupyter lab notebook (the same happens with the old jupyter notebook). A few weeks ago IT had to reinstall SAS on my Windows 10 Machine. Since then, when I try to run any SAS code in a notebook, I get the following.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="sas_cm.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21962i40036793A35B9749/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_cm.PNG" alt="sas_cm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(The image is large enough, but this seems to shrink it to the point where it is unreadable). Here's the wall of text I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The application could not log on to the server. The server process did not start.
SAS process has terminated unexpectedly. RC from wait was: 4294967290
SAS Connection failed. No connection established. Double check you settings in sascfg.py file.

Attempted to run program C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java.exe with the following parameters:['C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java.exe', '-Dcom.sas.iom.orb.brg.zeroConfigWorkspaceServer.sascmd="C:\\Program Files\\SASHome\x86\\SASFoundation\\9.4\\sas.exe"', '-classpath', 'C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94390__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94390__prt__xx__sp0__1\\deploywiz\\log4j.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94390__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94390__prt__xx__sp0__1\\deploywiz\\sas.core.jar;C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar', 'pyiom.saspy2j', '-host', 'localhost', '-stdinport', '61493', '-stdoutport', '61494', '-stderrport', '61495', '-zero', '']

Be sure the path to sspiauth.dll is in your System PATH

No SAS process attached. SAS process has terminated unexpectedly.
No SAS process attached. SAS process has terminated unexpectedly.
No SAS process attached. SAS process has terminated unexpectedly.
No SAS process attached. SAS process has terminated unexpectedly.
No SAS process attached. SAS process has terminated unexpectedly.
No SAS process attached. SAS process has terminated unexpectedly. 
Restarting SAS session on your behalf
in shutdown function
Restarting kernel...
Done!&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have made sure sspiauth.dll is in&amp;nbsp;mine System PATH:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="envir_var.PNG" style="width: 1297px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21965i626715F23DB86A27/image-dimensions/1297x456?v=v2" width="1297" height="456" role="button" title="envir_var.PNG" alt="envir_var.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Something else that might be relevant is that I have three different &lt;EM&gt;deploywiz&lt;/EM&gt; folders. I've tried editing&amp;nbsp;sascfg.py to each of them specifically and the result was the same with all of them.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="deploywiz.PNG" style="width: 578px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21966i48F906BB4A88A1CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="deploywiz.PNG" alt="deploywiz.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This problem seems to be the same that is troubleshooted in &lt;A href="https://sassoftware.github.io/saspy/troubleshooting.html" target="_self"&gt;this&lt;/A&gt; link, point 5.&lt;/P&gt;&lt;P&gt;I have also followed the instructions there, but they didn't help me.&lt;/P&gt;&lt;P&gt;Here's what I see in my registry:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="registry.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21967iE8EA7CDE34A7DBC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="registry.PNG" alt="registry.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I run&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"C:\Program Files\SASHome\x86\SASFoundation\9.4\sas.exe" /regserver&lt;/PRE&gt;&lt;P&gt;Nothing seems to happen as you can see in the gif below. And after doing all this, I still get the same problem&amp;nbsp;I showed at the top.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="cmd_line.gif" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21968iB3A3F037C786DD85/image-size/large?v=v2&amp;amp;px=999" role="button" title="cmd_line.gif" alt="cmd_line.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my SAS version.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_ver.PNG" style="width: 347px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21969i07E661A7725B0D96/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_ver.PNG" alt="sas_ver.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what else to try. Any help?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/480752#M124260</guid>
      <dc:creator>Autotelic</dc:creator>
      <dc:date>2018-07-24T09:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS to Jupyter kernell.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/480870#M124304</link>
      <description>Fixed it!&lt;BR /&gt;&lt;BR /&gt;I just had to comment out the key concerning "javaparms" from the winlocal dictionary in sascfg.py.&lt;BR /&gt;&lt;BR /&gt;Big help from Tom Weber in solving this. Thanks.</description>
      <pubDate>Tue, 24 Jul 2018 17:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/480870#M124304</guid>
      <dc:creator>Autotelic</dc:creator>
      <dc:date>2018-07-24T17:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS to Jupyter kernell.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/562940#M157767</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is regarding SAS Notebook, which is not working in Jupyter Lab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed Anaconda distribution of Python as well as Jupyter Lab and modified the saspy configuration file.&amp;nbsp; The path to sspiauth.dll has also been added to the system PATH variable. SASPy is working fine. In the Jupyter Lab platform, I have been able to lunch python notebook, running python code, SASPy, and %%SAS and SAS code using Python kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue: When attempting to launch SAS notebook (using licensed SAS 9.4M6, not the University edition), I get a dead kernel (i.e., No Kernel). &amp;nbsp;When the SAS kernel is selected, I get the following error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Starting Kernel&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\web.py", line 1699, in _execute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = await result&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yielded = self.gen.throw(*exc_info)&amp;nbsp; # type: ignore&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type=mtype))&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = future.result()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yielded = self.gen.throw(*exc_info)&amp;nbsp; # type: ignore&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = future.result()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yielded = self.gen.throw(*exc_info)&amp;nbsp; # type: ignore&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = future.result()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\tornado\gen.py", line 209, in wrapper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yielded = next(result)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super(MappingKernelManager, self).start_kernel(**kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; km.start_kernel(**kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; **kw)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return launch_kernel(kernel_cmd, **kw)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyter_client\launcher.py", line 138, in launch_kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc = Popen(cmd, **kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 775, in __init__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; restore_signals, start_new_session)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Pradip.Muhuri\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 1178, in _execute_child&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; startupinfo)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FileNotFoundError: [WinError 2] The system cannot find the file specified&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the output from the kernelspc list command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;base) C:\Users\FN.LN&amp;gt;jupyter kernelspec list&lt;/P&gt;&lt;P&gt;Available kernels:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\FN.LN\AppData\Roaming\jupyter\kernels\ir&lt;/P&gt;&lt;P&gt;&amp;nbsp; python3&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\FN.LN\AppData\Roaming\jupyter\kernels\python3&lt;/P&gt;&lt;P&gt;&amp;nbsp; sas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\FN.LNi\AppData\Roaming\jupyter\kernels\sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;#Check whether the pyiom directory has the files saspy2j.class and saspy2j.java inside it&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;import&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;os&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;# List all files in a directory using os.listdir&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;mypath&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'/Users/FN.LN/AppData/Local/Continuum/anaconda3/lib/site-packages/saspy/java/pyiom'&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;entry&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;listdir&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mypath&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;isfile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;os&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;join&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mypath&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;entry&lt;/SPAN&gt;&lt;SPAN&gt;)):&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;entry&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&amp;nbsp;saspy2j.classsaspy2j.java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciated if you could help me by resolving the &amp;nbsp;‘No Kernel’ issue when the SAS kernel is selected from Jupyter Lab .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 17:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-to-Jupyter-kernell/m-p/562940#M157767</guid>
      <dc:creator>muhuri</dc:creator>
      <dc:date>2019-05-31T17:47:41Z</dc:date>
    </item>
  </channel>
</rss>

