Question Padmaja Konduru · Oct 16, 2023

How to install Python in IRIS

Could you please help anyone how to import Python package in %SYSTEM package and to use python methods to write in object script class?

I used the following link to install the Python but I can't see the Python package in %SYSTEM package and my program throwing the Class Does not exist error?

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…

Please help on this..

Product version: IRIS 2020.1

Comments

Luis Angel Pérez Ramos · Oct 16, 2023

How are you importing the Python library in your class? Have you declared your method language as Python? Did you see the package installed in the path defined by the documentation?

0
Elijah Cotterrell · Oct 16, 2023

Embedded Python is only available from IRIS 2021.2. If you are running on 2020.1, you won't have access to %SYS.Python, and cannot make use of Embedded Python from ObjectScript classes.

0
Padmaja Konduru · Oct 19, 2023

Hi Luis,

I have run the command as mentioned in the document "C:\InterSystems\IRIS\bin>irispip install --target C:\InterSystems\IRIS\mgr\python numpy" and it created package in IRIS installation path C:\InterSystems\HealthConnect\mgr\python but library classes not installed in Studio. I am not sure about how to import Python classes into %SYSTEM/%SYS package.

I am planning to use [Language=python] and import python code into object script. 

0