Install the Python Collector
Before you begin
- Install the Historian server and collectors.
- Install Python 3.8 on the same machine on which you have installed collectors.
Procedure
-
Add the following entries to update the Python collector’s registry:
- In the following location, include the path to the Python install lib
folder:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GE Digital\iHistorian\CollectorServiceExtensions\PythonExpressions\PythonPath
- In addition, add the path to the Python 3.8 lib folder or any custom modules
to Python path. This path can also include location of any custom modules or
functions (global functions or variables to be used from within the python tag
calculation/script).
Examples:
C:\Program Files (x86)\GE Digital\Historian Python Expressions\Python38\lib
C:\Program Files (x86)\GE Digital\Historian Python Expressions\Python38\user
C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib
C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib\site-packages
C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\DLLs
You can also configure Python library path using Configuration Hub. For more information, refer to Configure Python Library path using Configuration Hub. - In the following location, include the path to the Python install lib
folder:
-
Update any default modules to be used for python tags to key:
DefaultModuleImports