-
Notifications
You must be signed in to change notification settings - Fork 87
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
TypeError: can't pickle _thread.RLock objects #56
Comments
@flappy007 Do you get the error when running other examples? Have you modified the object detection example in any way? What version of videoflow are you running? And what version of Python? Also, do you have more lines that you could provide on your error dump? Will look into it. |
Hi @jadielam thanks for your prompt reply. I am using the example object detection.py but i even tried other example but got the same error for each one. Python version: 3.6 anaconda, tensorflow: 1.10.0 opencv: 4.1.0 and the latest version of videoflow pulled from git: 0.2.2. Error below: fl.run() |
I run a Mac and Python 3.7.2, and I don't get errors on this. First thing I will try to do is create an environment similar to yours with those versions and try to replicate, so that then I can see what's a good fix. |
Hi @jadielam any success on this. I too did run the code in Mac and it did not throw any error. The problem seems to be with windows system and how the process/thread is being pickled. |
I have been able to reproduce error in WIndows. Updating ticket to be a bug. I will see what I can do. I am not very experienced in Windows, but I hope that my Python can carry me far there. |
FWIW, the stacktrace looks exactly like https://stackoverflow.com/questions/44144584/typeerror-cant-pickle-thread-lock-objects So I think the fix suggested over there is worth testing. |
Hi,
I tried the object detection example and i get below error:
File "c:\continuum\anaconda3\Lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle _thread.RLock objects
Could you please help. I am running it in windows and anaconda virtual environment
The text was updated successfully, but these errors were encountered: