-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
multiprocessing on py>=3.7 causes threading.RLock pickling exception #920
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
Comments
Can confirm the error Windows.
Interesting side note: It works when I downgrade python to version before 3.7 (tested 3.6.0 and even 3.5.x I believe) |
I can confirm this error. Code works fine on Linux, but fails on Windows with Python 3.8. No problem when simply using |
Ah so looks like before running multiprocessing code you need to: from multiprocessing import RLock
tqdm.set_lock(RLock()) That's unfortunate. In any case |
Awesome, thanks @casperdcl ! |
Works, thanks a ton @casperdcl |
This still carries on. Hasn't been fixed. Example code:
and end result:
|
read the known issues
environment, where applicable:
The current parallel-bars example doesn't work as it is raising the following exception on the anaconda prompt terminal:
However, this one from an old comment in an old PR does work.
Environment info
4.43.0 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 22:01:29) [MSC v.1900 64 bit (AMD64)] win32
The text was updated successfully, but these errors were encountered: