I was wondering if there would be any "gotchas" in trying to use python multiprocessing within a KNIME Python Script node?
I have a stand-alone script that uses mutiprocessing that I'd like to adapt for use within Knime. Simply placing the code within a Python Script Node fails with:
File "D:\Python27\lib\multiprocessing\pool.py", line 558, in get
raise self._value
TypeError: expected string or Unicode object, NoneType found
One would normally protect the body of the script that initialises the data and sets up the multiprocessing pool with
I don't see why there should be any gotchas. Each node runs it's own python process. Theoretically you should be able to do anything you can do in the inpterpreter you have you python integration in KNIME pointed to (prefs).
However, depending on the type of your data, you might also be able to distribute it on serveral python nodes. In this case each "job" from a node would have it's own python interpreter process.
Not having the script, this is all I can tell you for now.