State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:518942|
Problem summary
multiprocessing Python module doesn't work in Nuke, causing Nuke to hang indefinitely or the command to not run correctly
Windows and macOS seem to hang, while Linux runs the command, however it fails to print everything to the Script Editor
Customer reported version
nuke.13.2v2
Customer reported platform
windows10
Steps to reproduce
1) Open Nuke
2) In the Script Editor, run the following code:
from multiprocessing import Process, Pipedef f(conn, name): test = [] for i in range(10): import time print(i) test.append(str(i) + "-" + name) time.sleep(.5) conn.send(test) conn.close()if __name__ == '__main__': parent_conn, child_conn = Pipe() p = Process(target=f, args=(child_conn, 'test',)) p.start() print("waiting") print(parent_conn.recv()) 
Unknown units in -c from multiprocessing.spawn import spawn_main; spawn_main(parent_pid 

We're sorry to hear that
Please tell us why