-
Notifications
You must be signed in to change notification settings - Fork 7
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
Prelude.undefined while unpickling #1
Comments
Probably nothing, I think I didn't implement everything. I will get a look. Could you please give me a minimal test file that triggers the problem ? (I'm very happy to get this issue; I didn't know someone was using this library !) |
Indeed there are plenty of |
Thank you for writing and sharing this library. I am a real beginner in Haskell but I would try to help if I could find the documentation for the pickle protocol |
Have a look at the README, I think there is some pointer to learn the Pickle format. That being said if you can give me a sample file that you're trying to parse (possible the smallest example that triggers the |
The file is quite large, but looking at it with pickle tools these are the opcodes used at the beginning:
After that we have thousands of BINGET, BINFLOAT, BININT1 The end of the file looks like:
|
Thanks! That's a good start. Looking at the source, Unfortunately we're in the realm of Python classes and objects:
can be understood as Now we could decide that having a minimal representation (and not a full blown representation of Python classes and objects) for that case is doable, e.g. augment the
I think I'm ok with such an option. The good news is I think you have a perfectly good workaround: remove that part
and also
and you should be able to parse that file and obtain a dictionary. EDIT: actually |
I have implented |
Hi, I am running this code on a protocol 2 file:
And I keep getting:
where civs is the name of my app. Do you know what I am doing wrong?
The text was updated successfully, but these errors were encountered: