-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pre-epoch dates giving OverflowError in mktime with HDFStore #179
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
Comments
This is caused by a bug in the Python interpreter. If I'm reading the Python bug tracker correctly it was fixed in Python 2.7.2: http://bugs.python.org/issue1726687 what version of Python are you using? |
Perhaps I should put a warning letting people know to upgrade their Python version if they get this bug? |
I am using Python 2.7.2 on Windows 7 (C:\Python27\python.exe 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]) so I am not sure this resolves it? |
According to the Python docs this is a platform specific problem and I guess does not have a short-term resolution http://docs.python.org/library/time.html#time.mktime The best immediate solution I have for you is: get 64-bit Python which does not have this problem. Longer term I am going to integrate the NumPy datetime64 dtype into pandas which will solve this. But that's only something I can see happening within the next few months. I'm going to leave the issue open so I don't forget about it. |
Thanks and look forward to it. |
Alternative requiring NumPy > 1.6, I suggested on the mailing list
then on the way back:
|
This is resolved in git master by the move to datetime64 |
I am having trouble with pre-epoch dates working with HDFStore, getting an OverflowError in mktime, as shown below.
Sample code is:
The error I get is:
Any ideas, please?
The text was updated successfully, but these errors were encountered: