New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipyparallel and pymoo doesn't work #848
Labels
Comments
This seems related to child classes that call super() and appears to be a bug in the pickling/canning process. import ipyparallel as ipp
class A:
def __init__(self):
self.x = 1
class B(A):
def __init__(self):
pass
class C(A):
def __init__(self):
super().__init__()
# Start the clusters
rc = ipp.Cluster(n=2).start_and_connect_sync()
rc.wait_for_engines(n=2)
dview = rc[:]
dview["A"] = A
dview["B"] = B
dview["C"] = C # <-- RecursionError: maximum recursion depth exceeded |
You might try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello all,
I am trying to use ipyparallel with a module for Genetic Algorithm (pymoo) and for that, I need to pass the class name 'MyProblem' to the clusters (don't know really why clusters are not aware but I have also the same problem with function defined in the main program). When I pass the name using 'dview["MyProblem"] = MyProblem' I am facing a recursing error.
This is the simplified code below which reproduce the error. Do you have any idea ?
Thanks in advance for your help.
Patrick.
The text was updated successfully, but these errors were encountered: