-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Error trying to serialize a binary file handle #617
Comments
The following seems to work for me, given python 3.8 and the latest
This also works:
and this also works:
What is your version of dill`? It looks like you are using Python 3.10 on Windows. Can you confirm that, and give any further details? If my test code succeeds for you, then can you give an example binary file that fails so I can test it? |
Yes, I confirm. But the difference is probably the file. Try this
|
I can reproduce the error with that code, thanks. It would seem that the error is pretty self-contained, as it attempts to pickle the file and immediately fails in the registered function
|
With
fmode
set toFILE_FMODE
gives error
because the code tries to open the binary file as text.
The text was updated successfully, but these errors were encountered: