Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connecting jupyter lab to a SAS Viya Analytics Pro Docker Container #625

Open
vstorme opened this issue Dec 19, 2024 · 1 comment
Open

Comments

@vstorme
Copy link

vstorme commented Dec 19, 2024

I installed saspy correctly but I can't get my SAS cfg file correct. This is my cfg file:

sascfg_personal.txt

and this is the error I get:


SASIONotSupportedError Traceback (most recent call last)
Cell In[4], line 1
----> 1 sas = saspy.SASsession(cfgfile=cfg_file, cfgname='docker')

File ~\AppData\Local\anaconda3\envs\saspy_env\Lib\site-packages\saspy\sasbase.py:592, in SASsession.init(self, **kwargs)
590 self._io = SASsessionSTDIO(sascfgname=self.sascfg.name, sb=self, **kwargs)
591 else:
--> 592 raise SASIONotSupportedError(self.sascfg.mode, alts=['IOM'])
593 elif self.sascfg.mode == 'IOM':
594 self._io = SASsessionIOM(sascfgname=self.sascfg.name, sb=self, **kwargs)

SASIONotSupportedError: Cannot use STDIO I/O module on Windows. Try the following: IOM

@tomweber-sas
Copy link
Contributor

Connecting to SAS that's in the Apro container requires using the SSH (STDIO over SSH) access method, since Python is not in that container; it's a remote connection. Also, even though it's called the Viya Apro, it doesn't support the HTTP access method like a Compute Server, running in an actual Viya deployment, would. So it a bit tedious to set up with that container. But, I did find instructions for this in the Apro doc here: https://go.documentation.sas.com/doc/en/anprocdc/v_043/dplyviya0ctr/p02tns1ea7ek9on1ibx8rneca1t0.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants