Skip to content

How to use iRIC GUI functions from python

Keisuke Inoue edited this page Oct 6, 2016 · 5 revisions

iric Python module

Python module named iric is bundled with iRIC pre-post-processor GUI. Currently, you can use only very small part of iRIC GUI from python scripts. This page describe how you can make it possible to use iric module.

#Environments supported

Currently iric Python module is built only for Python 3.5 64bit on Windows.

How to install

Install Python 3.5

Download Python installer for windows from Python web site. Please note that you have to download and install x86-64 version, not x86 version.

Copy iric modules to Python folder

iric.py, _iric.pyd exists inside pythonmodule sub-folder in iRIC GUI folder. It is typically C:\Users(Username)\iRIC\guis\prepost\pythonmodule.

Copy these two files into (Your_python_install_path)\Lib\site-packages folder.

Add iRIC GUI path to PATH environment variable.

From Control Panel, go to "System" -> "System Detail" -> "Environment variables", and add your iRIC GUI path to PATH. It is typically "C:\Users(Username)\iRIC\guis\prepost".

To avoid problems, you'd better add as the first of the path settings, to avoid using invalid DLL, that causes problems.

QT_QPA_PLATFORM_PLUGIN_PATH setting

As Environment Variable, add "QT_QPA_PLATFORM_PLUGIN_PATH". It should be the "platforms" folder in iRIC GUI installation path. It is typically "C:\Users(Username)\iRIC\guis\prepost\platforms"

Now you are done!

How to use

You can use iric module from python like below:

import iric