查找

文章
· 九月 4, 2024 阅读大约需 2 分钟

Configuration de la fonctionnalité d'exécution flexible de Python dans IRIS 2024.2

Bonjour à tous,

Cet article a pour but de vous guider dans le processus de configuration et d'utilisation de la fonctionnalité d'exécution flexible de Python pour Embedded Python. Avant la version 2024.2, le programme d'installation d'Intersystems IRIS incluait une version préinstallée de Python. Vous pouvez trouver les bibliothèques Python et les fichiers d'application situés dans le répertoire \lib\python de votre dossier d'installation IRIS (par exemple, C:\InterSystems\IRIS20242\lib\python).

Cependant, à partir de la version 2024.2, le programme d'installation d'IRIS n'inclut plus l'installation de Python par défaut. Par conséquent, vous ne trouverez pas ces fichiers dans le répertoire susmentionné. Il est nécessaire que vous installiez la version requise de Python pour travailler efficacement avec Embedded Python dans IRIS.

Passons maintenant à la configuration de la fonctionnalité d'exécution flexible dans mon environnement IRIS.

J'ai installé la version communautaire 2024.2 sur ma machine et j'ai essayé de connecter immédiatement le shell Python dans le terminal IRIS.

USER>Write $ZV
IRIS for Windows (x86-64) 2024.2 (Build 247U) Tue Jul 16 2024 09:57:03 EDT
USER>Do $SYSTEM.Python.Shell()
ERROR #5002: ObjectScript error: <OBJECT DISPATCH>Shell+16^%SYS.Python.1 *Failed to Load Python: Check documentation and messages.log, Check CPF parameters:[PythonRuntimeLibrary,PythonRuntimeLibraryVersion], Check sys.path setup in: $INSTANCE/lib/python/iris_site.py.

Il génère une erreur en raison de la configuration manquante de PythonRuntimeLibrary et les valeurs PythonRuntimeLibraryVersion sont vides (remarque : j'ai déjà défini la version PythonRuntimeLibraryVersion)

J’ai déjà installé Python 3.12.5 sur mon système et configuré les valeurs dans les paramètres.

PythonRuntimeLibrary  - “C:\Program Files\Python312\python3.dll”
PythonRuntimeLibraryVersion - 3.12

Une fois configuré, j'ai exécuté à nouveau Do $SYSTEM.Python.Shell() et il est entré avec succès dans le shell Python

Remarque : la documentation sur les fonctionnalités d'exécution flexibles de Python est conforme à la documentation ou il dit que cette fonctionnalité n'est pas prise en charge par tous les systèmes d'exploitation.

讨论 (0)1
登录或注册以继续
问题
· 九月 4, 2024

Erro na compilação de classesiris

Ao compilar minha classe Utils.Persistence.Menu no Studio ele apresenta a seguinte mensagem

ERROR #5356: Compiled storage class '%Storage.SQL doesnot exist

ERROR #5030: An error occurred while compiling class 'Utils.Persistence.Menu'

essa classe foi alterada no IRIS 2024 e após essa alteração começou a apresentar esse erro no CACHE 2018

no IRIS ela compila sem erros.

Alguém sabe como resolver?

2 Comments
讨论 (2)2
登录或注册以继续
公告
· 九月 4, 2024

★勝者発表★ InterSystems 開発者コミュニティ AI を試して賞品ゲット!

コミュニティの皆さん、こんにちは!

開発者コミュニティ AI 懸賞企画 お楽しみいただけましたか? まだまだ改良の必要がありそうですが、DC AIを利用して何か新しい回答が得られていることを願っています。

この投稿では、優勝者を発表します!🎊(抽選の様子を動画でご紹介しています。ぜひご覧ください!)

DC AI 懸賞企画の勝者は、日本の開発者コミュニティメンバーである @Akio Hashimoto さんです!おめでとうございます!🎊🎊🎊 

賞品の発送については近日中にご連絡いたします。

@Akio Hashimoto さん、おめでとうございます!!(もしよろしければ・・・、賞品が到着されましたら賞品の写真を投稿いただけるととてもうれしいです!!

そして、参加された皆様、ご参加いただきありがとうございました!次回もありましたら是非またチャレンジしてください!

4 Comments
讨论 (4)1
登录或注册以继续
公告
· 九月 4, 2024

400+ Ideas on the InterSystems Ideas Portal

Hey Community, 

We’re pleased to announce that the InterSystems Ideas Portal now features 400 diverse and innovative ideas 🙌🙌🙌

This milestone highlights the active participation and creativity of our Community. We appreciate all the contributions and support that drive the ongoing success of this portal!

Since the launch of the Ideas Portal, our Community members have posted 400+ ideas. 

A special thank you to @Mark OReilly for submitting the 400th idea: "Category dropdown to appear in alphabetical order (ignoring case) production config page. Yay!

 
Let's take a look at the idea leaders and the number of ideas they have submitted:


 More than 15% of ideas (63 ideas) have been implemented by InterSystems or done by Community members

Take a look at the "Ideas Portal Hall of Fame" page, which highlights all the implemented ideas and the developers who bring them to life.  

 
Let’s review the leading contributors to idea implementation and the number of ideas they’ve brought to life:

For inspiration, we encourage you to explore the "Community Opportunity" ideas and take the next step to join our "Hall of Fame."
 

31 ideas are planned or in progress, including those that received the most votes from our community.

 
Let's see the most voted ideas planned or in progress of implementation.

Thank you for posting your ideas, commenting on existing ideas, and voting for ideas you like. Special thanks to the community members who implemented the ideas. Keep them coming!


🤗 Thank you to everyone who has contributed ideas, voted, and supported the innovation process. 

Stay tuned for more updates as we move forward with implementing your great ideas!

Stay tuned for more updates as we move forward with implementing your great ideas! 

讨论 (0)1
登录或注册以继续
文章
· 九月 4, 2024 阅读大约需 2 分钟

Configuración de la Funcionalidad de Entorno de Ejecución Flexible de Python en IRIS 2024.2

Hola Comunidad,

Este artículo tiene como objetivo guiaros a través del proceso de configuración y utilización de la Funcionalidad de Entorno de Ejecución Flexible de Python para Python embebido. Antes de la versión 2024.2, el instalador de Intersystems IRIS para Windows incluía una versión pre-instalada de Python. Podíais encontrar las bibliotecas de Python y los archivos de la aplicación ubicados en el directorio \lib\python dentro de la carpeta de instalación de IRIS (por ejemplo, C:\InterSystems\IRIS20242\lib\python).

Sin embargo, a partir de la versión 2024.2, el instalador de IRIS para Windows ya no incluye la instalación de Python por defecto (más información aquí). Como resultado, no encontraréis estos archivos en el directorio mencionado. Es necesario que instaléis la versión requerida de Python para trabajar de manera efectiva con Python embebido en IRIS.

Vamos a proceder a configurar la funcionalidad de entorno flexible dentro de mi entorno IRIS.

He instalado la versión comunitaria 2024.2 en mi máquina e intenté conectar el shell de Python inmediatamente en la terminal de IRIS.

USER>Write $ZV
IRIS for Windows (x86-64) 2024.2 (Build 247U) Tue Jul 16 2024 09:57:03 EDT
USER>Do $SYSTEM.Python.Shell()
ERROR #5002: ObjectScript error: <OBJECT DISPATCH>Shell+16^%SYS.Python.1 *Failed to Load Python: Check documentation and messages.log, Check CPF parameters:[PythonRuntimeLibrary,PythonRuntimeLibraryVersion], Check sys.path setup in: $INSTANCE/lib/python/iris_site.py.

Da un error porque falta la configuración de PythonRuntimeLibrary y los valores de PythonRuntimeLibraryVersion están vacíos.

Ya he instalado Python 3.12.5 en mi sistema y establecido los valores en la configuración.

PythonRuntimeLibrary  - “C:\Program Files\Python312\python3.dll”
PythonRuntimeLibraryVersion - 3.12

Una vez configurado, ejecuté Do $SYSTEM.Python.Shell() de nuevo y logré acceder al shell de Python.

Nota: La funcionalidad de entorno de ejecución flexible de Python sólo es compatible con determinados sistemas operativos. Aquí podéis consultar la lista detallada de los S.O. soportados. 

讨论 (0)1
登录或注册以继续