Closed skyshuford closed 4 years ago
The problem seems to be that the ipyparallel processes are unable to find your module module_containing_udp
. You need to make sure that the ipyparallel cluster is able to locate your module. This can be done by either manipulating the PYTHONPATH
variable or simply starting the ipyparallel cluster from a working directory from which your custom module can be found.
That was it. Appreciate the speedy response.
Is there a way to use ipyparallel_island archipelago with a user-defined problem I created using modules loaded from my working directory?
archi.wait_check() yields:
RuntimeError: The asynchronous evolution of a pythonic island of type 'Ipyparallel island' raised an error: Traceback (most recent call last): File "C:\Users\Skyler\Anaconda3\lib\site-packages\pygmo\_py_islands.py", line 593, in run_evolve return pickle.loads(ret.get()) File "C:\Users\Skyler\Anaconda3\lib\site-packages\ipyparallel\client\asyncresult.py", line 169, in get raise self.exception() File "C:\Users\Skyler\Anaconda3\lib\site-packages\ipyparallel\client\asyncresult.py", line 226, in _resolve_result raise r ipyparallel.error.RemoteError: ModuleNotFoundError(No module named 'module_containing_udp')
It seems like a pickling issue; is there a work-around?
Problem solves when not using archipelago, and pygmo.rosenbrock solves when I use ipyparallel_island.