pytz2007c error

looping kadeko at gmail.com
Tue Mar 6 09:51:55 CET 2007


Hi,
Why this error ?

>>> from pytz import timezone
>>> eastern = timezone('US/Eastern')
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python25\lib\site-packages\pytz-2007c-py2.5.egg\pytz
\__init__.py", line 93, in timezone
  File "C:\Python25\lib\site-packages\pytz-2007c-py2.5.egg\pytz
\tzfile.py", line 33, in build_tzinfo
    for trans in data[:timecnt]]
  File "C:\Python25\lib\site-packages\pytz-2007c-py2.5.egg\pytz
\tzinfo.py", line 27, in memorized_datetime
    dt = datetime.utcfromtimestamp(seconds)
ValueError: timestamp out of range for platform localtime()/gmtime()
function

I'm running python 2.5 on WinXP French with the egg from CheeseShop.

Same error with all timezone (like timezone('Europe/Zurich'),
timezone('Europe/Amsterdam'), ...) except a few one:
>>> print timezone('UTC')
UTC

Is this a pytz problem or something I didn't understand ?




More information about the Python-list mailing list