-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Pickling error on enum #49
Comments
Sorry for the slow response. I don't see where an
This is the same regardless of version of python. This seems to be either a duplicate issue of #48 (i.e. the So, I'm going to close this ticket as a duplicate. Please feel free to reopen and add further information or comments, if you have any. |
Hi, I am replacing the multiprocessing with multiprocess module, and while my target function consist enum, it return pickling error. If the enum is removed, the function will run without issue.
My target function is a simple loop as I tried to troubleshoot the source of can't pickling:
def ExecuteMultiprocess(self):
list = []
i = States.DetectingShots
count = 0
while i is States.DetectingShots:
list.append(i)
print(i)
count = count+1
if count > 10:
break
Error
Traceback (most recent call last):
File "", line 1, in
File "C:\Gk\Pf\Gk\source\XShot\XShot\env\lib\site-packages\multiprocess\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Gk\Pf\Gk\source\XShot\XShot\env\lib\site-packages\multiprocess\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
File "C:\Gk\Pf\Gk\source\XShot\XShot\env\lib\site-packages\dill_dill.py", line 304, in load
obj = pik.load()
EOFError: Ran out of input
The text was updated successfully, but these errors were encountered: