Trouble With IRIS Native for Python in Health Share
I was interested in accessing IRIS (Healthshare) using Python. I found instructions how to this here: https://github.com/intersystems/quickstarts-python/tree/master/Solution…
The installation went well using pip and when python executes "import irisnative" it works fine. It just fails with a connection timeout when I try "irisnative.createConnection(...)." Below is my code:
import irisnative # Modify connection info based on your environment ip = "10.10.74.225" # VPN connection to server port = 58772 namespace = "HSREGISTRY" username = "my-user" password = "secret" # create database connection and IRIS instance connection = irisnative.createConnection(ip,port,namespace,username,password) dbnative = irisnative.createIris(connection)
I'm using Python 3.9.1. Any help would be appreciated!
Marlin Mixon
Comments
try to use a username with privileged %ALL in Health Share
to distinguish between network problems and access right problems
Thanks Robert! I got it working. I just needed to set my port correctly. It was incorrectly set to 58772 which is what we use for making http connections. I changed it to 1972 and it worked.
![]()