Initializing help system before first use

pyinit

pyinit


Purpose
Initialize the Python interpreter.
Synopsis
procedure pyinit
Example
The following example initializes Python:
 pyinit
Further information
1. The use of this procedure is optional: Python is automatically initialized upon first use.
2. You can only initialize one Python interpreter per Mosel instance. The initialization will fail if you attempt to initialize two interpreters in the same Mosel instance. Use pyunload to release the interpreter and its resources. The interpreter cannot be reinitialized in the same Mosel instance after unloading it.
3. In order to use multiple interpreters in parallel, it is necessary to create a new Mosel instance for each additional interpreter. Use the connect function from the mmjobs module to create a new instance.
4. If the initialization of Python fails, activate additional logging by setting the parameter pyinitverbose to true before initializing Python, double check the values of your environment variables (see the Introduction section) and check the Troubleshooting section.
Related topics
Module
python3