Closed j4ffle closed 2 years ago
Well, that all looks like it ought to work. Can you show me what your config is (for winlocal)? And that path for the sspiauth.dll file is correct; the file's there and you have permission to it? Can you add the path to the system path variable and see if that helps? You may need to restart at least whatever python you're running after adding it, so it gets picked up. The rest seems right and the error when running the command directly is correct (expected). The error is that java can't load the sspiauth.dll, so let's try putting it into the real system path variable and see if that get's it found.
It looks like I may not have permissions to change the system path variable - or at least not that directory. I confirmed that after adding the directory to the PATH in python that it is included in the variable, but when I tried to add it to the system path variable through the control panel, I didn't seem to have the proper access to change it. I copied sspiauth.dll
to another path that was already in the system path variable (C:\Program Files (x86)\Common Files\Oracle\Java\javapath
) and it seems to have connected.
import saspy
java_path = 'C:\\Program Files\\Java\\jdk1.8.0_231\\bin\\Java.exe'
sas = saspy.SASsession(cfgname='winlocal', java=java_path)
now produces:
SAS Connection established. Subprocess id is 52748
Thanks for the quick response! I think that should do the trick.
Well that's great! It's had to diagnose windows issues like this, especially when you don't have full permissions on the system. Great job figuring to just copy the file to another location that was already in the path!
Let me know if you need anything else. Feel free to close this if you're good to go. Tom
Trying to connect to a local SAS session but keep receiving the same error. I added the directory of sspiauth.dll to my PATH environment variable.
I run this code:
and receive the below error
I then ran the code in the command line and receive the error below:
Desktop: