新しい投稿

検索

質問
· 2024年10月2日

Python.net Install

This is for IRIS For Health 2024.2.0

We are migrating away from the .NET Gateway and trying to use the python integration instead.

I followed the instructions to install IRIS

Then I installed python following the IRIS documentation indicating that python should be installed globally.

I set up the PythonRuntimeLibrary and PythonRuntimeLibraryVersion options under System->Configuration->Advanced memory settings and when I run the shell function, I get python:

USER>do ##class(%SYS.Python).Shell()
 
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep  6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)] on win32
Type quit() or Ctrl-D to exit this shell

To reach out to our C# DLL, I ran the following command to install python.net

pip install pythonnet, it reported downloading items succuessfully.

To test, I have a simple python script that is just "import clr" and when I run this from the cmd prompt, it does not error out. I did make a demo DLL with a namespace, class, and one function. If I reference that DLL, it calls the function and prints hello world. So, it appears to me that python.net is working.

 

But when I create a new class and have 'import clr" in the classmethod with Language = python, I am getting this error:

USER>d ##class(User.Test).Check()
 
D ##CLASS(User.Test).Check()
^
<THROW> *%Exception.PythonException <PYTHON EXCEPTION> 246 <class 'RuntimeError'>: Failed to initialize Python.Runtime.dll

 

From my reading, I'm pretty sure its a path issue of some kind because I don't have the right environment variables set up.

I tried adding in all of these lines into the classmethod before I call import clr, and none of them have helped.

os.environ["PYTHONPATH"] = r"C:\Program Files\Python312\Lib\site-packages"

os.environ["PYTHONNET_PYDLL"] = r"C:\Program Files\Python312\python312.dll"

 

Has anyone else gotten python.net to work with IRIS?

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2024年10月2日

BP/External SQL Calls are creating IRIS.WorkQueue but is not purging the global

I have been trying to track down an issue we are seeing in our TEST environment with Memory usage.

We have Several BP's for years now that take a HL7 message, parse it apart, and make calls to a Custom EnsLib.SQL.OutboundAdapter to have it execute Insert/Select/Update/Delete stored procedures against a MS SQL Database via JDBC connection. We are using Microsoft's JDBC 12.2 driver to do this.

What we are seeing is that IRIS.WorkQueue globals are being defined for these calls but then the IRIS.WorkQueue is not being cleaned up and taking up large amounts of Memory.

I have tried ensuring the context variables are set to "" when we are done with them in the BP, and that the parameter array in the Custom BO is killed once the stored procedure is executed and we have a result.

Why would this not clean up on its own once the HL7 message has been processed (completed) through the BP? Any way to tell why IRIS.Workqueue globals are being created?

5 Comments
ディスカッション (5)2
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年10月2日

开发者社区回顾, 九月 2024

您好,欢迎阅读 九月 2024 开发人员社区通讯。
统计信息
✓ 九月发布了 45 篇新帖子:
 39篇新文章
 4个新公告
 2个新问题
✓ 九月有 47 位新成员加入
✓ 所有时间发布了 2,208 篇帖子
✓ 所有时间有 2,024 位成员加入
最高职位
本月最佳作家
文章
#InterSystems IRIS
 
#InterSystems IRIS for Health
第十二章 WS-Policy 配置类详细信息 - 配置类基础知识
按姚 鑫
第十三章 WS-Policy 配置类详细信息 - 添加扩展属性
按姚 鑫
第十四章 WS-Policy 配置类详细信息 - 配置 XData 块的详细信息(一)
按姚 鑫
第十五章 WS-Policy 配置类详细信息 - 配置 XData 块的详细信息(二)
按姚 鑫
第十六章 WS-Policy 配置类详细信息 - 自定义配置示例
按姚 鑫
第十八章 添加时间戳和用户名令牌
按姚 鑫
第十九章 添加时间戳和用户名令牌 - 时间戳和用户名令牌示例
按姚 鑫
第二十章 加密 SOAP 主体
按姚 鑫
第十七章 手动添加安全元素
按姚 鑫
第二十一章 加密 SOAP 主体 - 变体:使用可识别证书的信息
按姚 鑫
第二十二章 加密 SOAP 主体 - 变体:使用签名的 SAML 断言
按姚 鑫
第二十三章 加密安全标头元素
按姚 鑫
第二十四章 加密安全标头元素 - 基本示例
按姚 鑫
第二十五章 添加数字签名
按姚 鑫
第二十六章 添加数字签名 - 示例
按姚 鑫
第二十七章 添加数字签名 - 变体:使用签名的 SAML 断言
按姚 鑫
第二十八章 添加数字签名 - 指定摘要方法
按姚 鑫
第三十章 使用派生密钥令牌进行加密和签名
按姚 鑫
基于向量搜索的患者相似度匹配示例程序
按Nicky Zhu
第三十一章 使用派生密钥令牌进行加密和签名 - 变体:创建隐式 DerivedKeyToken
按姚 鑫
第三十二章 使用派生密钥令牌进行加密和签名 - 使用 DerivedKeyToken 进行加密
按姚 鑫
第三十三章 使用派生密钥令牌进行加密和签名 - 使用 DerivedKeyToken _进行加密(一)
按姚 鑫
第三十四章 使用派生密钥令牌进行加密和签名 - 使用 DerivedKeyToken 进行签名
按姚 鑫
第三十五章 结合加密和签名
按姚 鑫
第三十六章 结合加密和签名 - 使用对称密钥签名并加密
按姚 鑫
 
#Caché
 
公告
问题
#InterSystems IRIS
活动量
按wei su
 
#Caché
 
九月, 2024Month at a GlanceInterSystems Developer Community
ディスカッション (0)0
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年10月2日

InterSystems Open Exchange Applications Digest, September 2024

Hello and welcome to the September 2024 Open Exchange Newsletter.
General Stats:
19 new apps in
598 downloads in
995 applications all time
36,919 downloads all time
2,865 developers joined
New Applications
iterm
By Dmitry Maslennikov
Code-Scanner
By Robert Cemper
iris-DataViz
By Muhammad Waseem
ks-iris-lib
By Robert Barbiaux
iris-ccd-devtools
By Chi Nguyen-Rettig
db-management-tool
By Andrii Mishchenko
iris-dev-codeinspector
By Rodolfo Moreira
IRIS-API-Template
By Samuel Thomas
IRIS-Log-Monitor
By sara aplin
sql-embeddings
By Henrique Dias
pxw-lib-sql
By Paul Waterman
IPM in VS Code
By John Murray
smart-day-hands-on
By Netanel Frankel
Irisheimer
By Zacchaeus Chok
IOP REST Client Framework
By Antoine Dhollande
thalamus-og
By Audrey Chen
IRIS-Test-Data-Generator
By Dylan Cole
iris-api-interface-generator
By Alex Alcivar
VectorSearchOnPatientSimilarity
By Lin Zhu
New Releases
errors-global-analytics by Evgeny Shvarov
v1.1.1
upgrade to dsw 4+
v1.1.2
ipm version bump
iris-embedded-python-template by Evgeny Shvarov
v3.0.1
fix byRef signature for Embedded Python method
Healthcare HL7 XML by Alberto Fuentes
v3.6.0
  • Fixed installation issues
  • Fixed pre/post 2024 ReadRawDataStream / GetFieldStreamRaw in ITB.HL7.Format.HL7XMLv2
zpm-registry by Evgeny Shvarov
v1.3.1
Added 2 query params includePrerelease and includeSnapshots when searching for compatible versions of a package.
v1.3.2
fix: include prerelease and snapshot by default for compat with older zpm
DeepSeeWeb by Anton Gnibeda
v4.0.9
  • internal build with dev feature for oAuth
v4.0.10
  • fixed issue with addons loading when DSW uses authentication (#331)
v4.0.11
  • internal build with dev feature for oAuth
v4.0.12
  • internal build with dev feature for oAuth
iris-datapipe by Alberto Fuentes
v2.0.1
  • Delayed processing option available
v2.0.2
  • Fixed installation error on IRIS 2022 version
Intersystems-Monitoring by Teunis Stolker
v1.0.17
Use excepton.Data instead of exception.data
v1.0.18
Fixed a mistake for the HTTP status code filter.
v1.0.19
Removed space from behind version number; this was causing install errors
Samples-Aviation by Evgeny Shvarov
v1.0.4
Docker environment simplified
DX Jetpack for VS Code by John Murray
v2024.0.0
2024 edition for Developer Tools Contest, containing three new extensions.
IRIS apiPub by Claudio Devecchi
v1.1.72
improvements & bug fixes
v1.1.73
bug fixes & improvements
apptools-admin by Sergey Mikhailenko
v1.2.6
Enabled support for Django projects via the native Python API library.
Git for Shared Development Environments by Timothy Leavitt
v2.5.0

[2.5.0] - 2024-09-24

Added

  • New UI for the basic mode Sync (#415)
  • Allow changing namespaces and IPM package context from web UI (#280)
  • Support for editing repo from filesystem perspective via web application (#464)
  • Support for downloading a VSCode workspace file from web UI
  • IncrementalLoad pull event handler will update the running production, if any (#473)

Fixed

  • Instance wide settings are placed in proper global (#444)
  • Avoid delay/errors in loading interop JS when there is a URL prefix (e.g., instance name in multi-instance webserver configuration)
  • Added proper JS escaping in sync output
  • Added support to switch branch in basic mode from menu (#451)
  • Pull event handler will not fail when change set includes unmapped files (#453)
  • Pull event handler will attempt compile even if there are failures to load (#457)
  • Improved logging in preview and when errors occur via WebSocket commands (#467)
  • Fixed pull event handler handling of extremely long class names from diff (#467)
  • Fixed Git web UI prompt to update file list when file selected/unselected (#478)
  • Fixed folder settings in mappings to be saved and persist (#483)
  • Preview on the pull.csp page now shows commits from the correct branch (#490)
Most downloaded
MDX2JSON
By Eduard Lebedyuk
DeepSeeWeb
By Anton Gnibeda
WebTerminal
By Nikita Savchenko
ssl-client
By Evgeny Shvarov
iris-bi-utils
By Evgeniy Potapov
interoperability-embedded-python
By Guillaume Rongier
iris-cron-task
By Evgeny Shvarov
isc-json
By Timothy Leavitt
iris-web-swagger-ui
By Maks Atygaev
, 2024Month at a GlanceInterSystems Open Exchange
ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年10月2日

In-person Developer Meetup on Security - October 15, Cambridge, MA

Hi Community,
We invite you to join our next Developer Meetup in Cambridge, MA on October 15th, 2024.
This time we’ll focus on Data & Security. Our security experts will be sharing their insights and knowledge.

>> RSVP here <<

Agenda:

1️⃣ Security trends, attacks and threats. Practical tools and frameworks
by Mark-David McLaughlin, Director, Corporate Security, InterSystems

2️⃣ Zero Trust Architecture
by Jonathan Sue-Ho, Senior Security Engineer, InterSystems

⏱ Day and Time: October 15, 5:30 p.m. to 7:30 p.m.
📍CIC Venture Café in Cambridge, Massachusetts

Save your seat now!

Food, beverages, and networking opportunities will be provided as always.
Join our Discord channel to connect with developers from the InterSystems developer ecosystem.

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください