Error starting up `Client`
See original GitHub issueThe following chunk of code fails:
from distributed.client import *
import time
client = Client()
time.sleep(5)
print('five seconds later')
with:
distributed.utils - ERROR -
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
(plus a long traceback)
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Error starting up Eureka Client with Spring Boot 2.4.1
I achieved to start up the Eureka Server, but with the Eureka Client I am getting the following error: Caused by: java.lang.
Read more >Weird Gateway Logs: Full of starting up client project monitor ...
My gateway logs are full of these messages, especially number 1. Starting up client project monitor. project=PackingStation scope=4 ...
Read more >Troubleshoot Start menu errors - Windows Client
Learn how to troubleshoot common Start menu errors in Windows 10. For example, learn to troubleshoot errors related to deployment, crashes, ...
Read more >Fix Valorant Not Launching Error - Couldn't Start Solution
This tutorial will show you how to fix Valorant not launching error. There are a few possible solutions to fix Valorant if it...
Read more >Solved: SC3020: Dell storage client "error setting up connection"
3) Verify if the Service shows as running in the General Information Tab If it is running select to stop and restart If...
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
By default
Client()
forks processes. If you use it within a module you should hide it within the__main__
block.Alternatively you can choose to use threads safely.
Ah, of course. Thanks. Sorry for the noise.