Hello
I am trying to connect the CAS server with the swat python package on jupyter notebook,
But every time run the code I am getting an error msg.
Code i am using
conn = swat.CAS(hostname = "",port = 8777,username = "",password = "")
i have also added the environment variable
SWATError: Unable to connect to any URL in the list: ""
I had also tried connecting directly to the SASViya and when I had tried uploading a file I am getting the following error: -
Hello Joe
Yes, i was using the single quotes, i was getting issues with the certificates, It has been resolved now.
Thank you so much for the help
Regards
Anish kapoor
Hi @anishkapoor ,
Did you add the hostname, username, and password from your SAS Viya server inside the quotes in your command? Something like:
conn = swat.CAS('https://my-cas-host.com:443/cas-shared-default-http/', username='user1', password='abc123') as described in the Python SWAT documentation?
Join us for SAS Community Trivia
Hello Joe
Yes, i was using the single quotes, i was getting issues with the certificates, It has been resolved now.
Thank you so much for the help
Regards
Anish kapoor
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.