Raj Singh · Aug 28, 2024 go to post

So now the problem isn't installing the Python library, but connecting to IRIS, correct? If you're using the above code on both servers, is the connection info the same on both servers?

Raj Singh · Jan 13 go to post

Hi @John.McBrideDev. We don't currently support formal debugging for embedded Python, so you won't be able to set breakpoints, etc. We're working on this high priority functionality.

Raj Singh · Mar 13 go to post
pip install sqlalchemy-iris[intersystems]

returns: 

zsh: no matches found: sqlalchemy-iris[intersystems]

Could this be because I'm on an M2 Mac?

Raj Singh · May 22 go to post

Let me comment separately on the venv question. Remember, you could choose to run your flask app in a separate container and use Docker compose to orchestrate the containers. That will give you all the normal venv options.

If, however, you choose to run your flask app embedded in IRIS (running using embedded Python), you are running in-process with IRIS, and that process can't load and unload Python virtual environments while maintaining the benefits of running in embedded mode, so therefore the implication for containerization is that yes you do have to create a new base image when you want to add a package, but that's the tradeoff.

Sounds like it's more accurate to say you want to exclude web applications that ship with IRIS, not only those that are of type "System." 

Using the security.applications table @David Hockenbroch mentioned, I'd exclude those from  namespaces InterSystems uses for product, e.g.:

SELECT name,namespace,resource,type FROM security.applications 
WHERE NameSpace not in ('%SYS','HSSYS','HSLIB','HSCUSTOM')

Hi @Justin.Millette. It isn't possible to support multiple in-process Python virtual environments simultaneously. This is because a Python virtual environment is defined at the operating system level, not the application level. A virtual environment consists of a specific Python executable and a set of associated libraries running within an OS-level process. Since IRIS itself is an OS-level process, it can only host a single Python interpreter when running Python code in-process. Supporting multiple virtual environments in this context would require multiple OS processes, which would negate the benefits of embedded execution. If you really need virtual environments, use normal client-side Python. 

Raj Singh · Aug 19 go to post

Thanks for the question, @Dienes. The simple answer is no, there is no set expiration time. We like to keep deprecated features around as long as a good number of users are depending upon them in production. Some reasons why a feature would be removed are: keeping the deprecated library conflicts with important features of the replacement; it becomes too burdensome to support the deprecated one; or the deprecated one becomes a risk in terms of security or data integrity. That hasn't happened yet with the libraries you mention.

Raj Singh · Aug 19 go to post

The AI bot isn't paying attention to the Python part of the question?

Raj Singh · Oct 10 go to post

Agreed. I think I now understand you don't need to know how to authenticate a user. Do you want to (after initial authentication) pass those authentication credentials to another app?