Purpose
 
 
  Initialize the Python interpreter.
 
  
  Synopsis
 
 
 procedure pyinit
 
 
  Example
 
 
 The following example initializes Python:
 
  
  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
 
                 
                
                    © 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the
                    property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
                    convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
                    solely for internal evaluation purposes to determine whether to purchase a license to the software
                    described in this documentation, or as otherwise set forth in a written software license agreement
                    between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
                    it must conform strictly to the foregoing permitted uses, and no other use is permitted.