BookmarkSubscribeRSS Feed
javier-saez
Calcite | Level 5

Hello,

 

I am trying to connect to a VIYA trial server, via swat package from Python. I am following this guide:

https://communities.sas.com/t5/SAS-Communities-Library/Your-First-CAS-Connection-from-Python/ta-p/26...

 

What should I write under cashost and casport? 

 

cashost='pdcesx13012.sas.com'
casport=8777
useremail=****
userpassword= ***

casconn = swat.CAS(cashost, casport, useremail, userpassword, caslib="casuser",protocol='https')

When I log-in with my username and password to https://pdcesx13012.sas.com/ I can access my Jupyter notebook without any trouble. For the record, these are the errors I get:

 

imeoutError: [Errno 110] Connection timed out
ConnectionError: HTTPSConnectionPool(host='pdcesx13012.sas.com', port=5570): Max retries exceeded with url: /cas/sessions (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fadeeaab518>: Failed to establish a new connection: [Errno 110] Connection timed out',)) During handling of the above exception, another exception occurred:

SWATError: Unable to connect to any URL: https://pdcesx13012.sas.com:5570

 

 

Thanks for your help.

Javier

 

4 REPLIES 4
alexal
SAS Employee

@javier-saez ,

 

Ports 8777 and 5570 aren't open to the outside world on that server.

javier-saez
Calcite | Level 5
OK, thanks.
So... what ports should I use? Is it even possible to connect to the Trial servers via swat library?
alexal
SAS Employee

@javier-saez ,

 

You could use only these ports. Our OnDemand team might be able to help you open these ports, but you have to open a track.

javier-saez
Calcite | Level 5
Thanks

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 982 views
  • 0 likes
  • 2 in conversation