I am using parallel python to run several dynamic simulations using a module called OrcFxAPI. A program works fine if it runs as a python program on my machine, however, if I convert it to an exe file using py2exe and then run it, I get the following error:
Traceback (most recent call last): File "Analysis.pyc", Line 500, in multiprocessor File "pp.pyc", Line 342, in __init__ File "pp.pyc", Line 506, in set_ncpus File "pp.pyc", Line 140, in __init__ File "pp.pyc", Line 152, in start File "pptransport.pyc", Line 140, in receive RuntimeError: Communication pipe read error
The error in this line in my program:
job_server = pp.Server(ppservers=ppservers)
but I think this may be due to the path used to import the OrcFxAPI module when submitting the job:
job = job_server.submit(max_seastate, (gui_vars, case_list, case, line_info, output_vars), (), ("OrcFxAPI",), callback=finished, callbackargs=(case_no, no_of_cases,))