I'm playing around with Python and trying to do some stupid things.
From the V8 documentation Libraries page, it says:
Python has an extensive standard library that provides a host of new functionality to the scripting language. The python documentation goes over all of the libraries in its standard library as well as how to use them here: The Python Standard Library — Python 2.7.18 documentation
OK, so far so good, so I create a simple Gateway startup script:
import sys
print "hello startup project:" , sys.version
Which generates a nice line in the wrapper log file:
hello startup project: 2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43)
So now I try something slightly more adventurous:
import sys
import multiprocessing
print "hello startup project:" , sys.version
But this causes the startup script to crash and burn with an error message of:
ImportError: No module named multiprocessing
The Ignition docs pointed me to the Python 2.7 docs for the standard library functions. The Python docs tell me that multiprocessing is a valid library and was introduced in version 2.6. But the Gateway startup script rejects the import statement. Thus it seems that not all of the Python standard libraries are available to the (Gateway startup?) scripts. So is there any documentation that actually describes what is and is not available?