Open emanuel-schmid opened 6 months ago
I think this is due to Jupyter Notebooks not supporting multiprocessing
properly. It's quite curious that I did not run into these problems lately. One quick solution is not to rely on multiprocessing
when only downloading with a single process, which is the default. I'll come up with a fix.
That's what I thought first too, but the code snippet above yields this very error above when run as a python script from command line, not from within a notebook. So it's probably not the Notebook's support of multiprocessing but the system's istself...
Does it still occur when using the "main" idiom as proposed in the error message?
# Your .py script
if __name__ == '__main__':
# Do whatever you were doing before
🤦 right! 🙄 no it doesn't.
On a Windows 10 computer, the following piece of code leads to a process running wild with a never ending stream of Error messages:
The error messages look something like this, repeated forever:
(Execution of above snippet cannot even be stopped with
ctrl-c
no matter how often it's pressed.)