-
Notifications
You must be signed in to change notification settings - Fork 60
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
UnicodeDecodeError when using Python 2.7 #28
Comments
I have the same problem. You have to encode every unicode key before saving: |
It is not working. Here what I did:
And I get the same exception |
Thank you so much for finding this issue! I don't use Python 2 much, so I am happy that this has been identified. So far, I have detected two issues with unicode under Python 2. One was my bug that meant you could not save using unicode group names. This has just been fixed so you can just do However, the other problem is reading files with unicode group names, and this seems to be an issue with PyTables, which is our HDF5 backend. I have filed and issue (PyTables/PyTables#652) so let's see what they say. All of this seems to be working fine under Python 3, so that is currently a work-around. |
Thanks a lot for jumping quickly into this issue @gustavla I will closely follow the issue on PyTables. I'm using Python 3 for now as a work around. |
Hello,
I'm using Deepdish to save a dictionary that contains unicode strings as key and numpy arrays, corresponding to computed embeddings. Small example to reproduce the exception:
And the raised exception is:
Any idea how to overcome this problem?
Thanks!
The text was updated successfully, but these errors were encountered: