-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: TimeSeries compat from < 0.13 #4755
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
Conversation
can you guys have a look at this under py3. There are some 'errors' when I try to read a py2.7 in the compatibility mode (e.g. when I have to 'fake' a ndarray sub-class to make it work). Works fine for py2 reading py2 and py3 reading py3. But get a very strange error when reading py2 with py3. It just prints the output for now. Try this (you can also drop into the debugger at the print statement as well)
|
I'll definitely take a look... |
@jreback the test cases are setup now such that they never fail :P (you need to add a |
that was on purpose, so u could look any idea about the unpickle error? |
ah okay - no I have no idea, I was trying to grep/grin around in the Python source to find what raises the error and I couldn't find anything with 'initializing object'. Any ideas on where it's raised? |
yep that's the problem |
maybe you're overriding some part that sets an encoding internally in the pickle module? Also, have you tried unpickling but removing pickle_compat? (do you still see the 'initialize string' error)? |
I first try regular unpickle (this is the This 'fails' on the final try, e.g. using pickle_compat with the encoding. AFAIK I am doing it correctly. for example. in 3.3 it correctly unpickles a 3.3 from 0.11. Its just the py2 with pickle_compat that is failing with something I am not even touching..... |
Whee... Did 3.3 unpickle a Python 2 Series pickle before you did the Series |
Found it.
I think this might be a numpy/python bug. really odd, like the bytes were magically converted to a string w/o properly decoding. (and the result is a |
… additional tests ENH: add 32-bit 2.7 pickle from 0.12 BUG: fixed py3 load_reduce; weird encoding on nan
BUG: TimeSeries compat from < 0.13
fixes a pickle compat issue for < 0.13 when presented with a TimeSeries (was an oversight on the initial PR).
additional tests as well