JR222
JR222

Reputation: 1

AttributeError: module 'ipyparallel' has no attribute 'Cluster'

I am going through the tutorial to learn ipyparallel and while doing so, I got the error: AttributeError: module 'ipyparallel' has no attribute 'Cluster'

I uninstalled and reinstalled the package but the error persisted, does anyone have any tips for solving this issue?

My Code/ Issue:

code

Thanks

Upvotes: 0

Views: 524

Answers (1)

YaOzI
YaOzI

Reputation: 17538

Make sure your ipyparallel version is greater or equal to 7.0.

In [1]: import ipyparallel as ipp

In [2]: ipp.__version__
Out[2]: '6.3.0'

In [3]: hasattr(ipp, "Cluster")
Out[3]: False

Sometimes conda install ipyparallel may not install the newest version. Try using pip install ipyparallel. After version 7.0:

In [1]: import ipyparallel as ipp

In [2]: ipp.__version__
Out[2]: '8.4.1'

In [3]: hasattr(ipp, "Cluster")
Out[3]: True

In [4]: cluster = ipp.Cluster(n=4)

Upvotes: 1

Related Questions