-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Error starting up Client
#516
Comments
Interestingly this only occurs if you add the If you just do
Then this runs fine |
The minimal failing example appears to be as follows: from distributed.client import *
import time
client = Client() |
Nope, I take it back. I can reproduce with the clean import |
This may be resolved by #515 |
This is, I believe, resolved. Thanks for reporting! |
I believe I ran into this same issue, resolved by updating from 1.13.0 to 1.14.3. from distributed import Client
client = Client()
ncores = sum([c for _, c in client.ncores().items()])
print(ncores)
# prints 0
client = Client('127.0.0.1:8786')
ncores = sum([c for _, c in client.ncores().items()])
print(ncores)
# prints 32 |
I see this issue (the original post) on mac and linux machines with distributed 1.16.3. edited to add: This is an issue when trying to run the code in a module. It works fine in the python interpreter or in jupyter notebooks. |
By default # client = Client()
if __name__ == '__main__':
client = Client()
... Alternatively you can choose to use threads safely. client = Client(processes=False) |
Ah, of course. Thanks. Sorry for the noise. |
The following chunk of code fails:
with:
(plus a long traceback)
The text was updated successfully, but these errors were encountered: