I'm having what appears to be same problem with Python 2.5.4 and pytz-2012h on Windows Server 2008.
>>> print pytz.timezone('US/Eastern') Traceback (most recent call last): File "<pyshell#43>", line 1, in <module> print pytz.timezone('US/Eastern') File "C:\Python25\lib\site-packages\pytz\__init__.py", line 181, in timezone _tzinfo_cache[zone] = build_tzinfo(zone, fp) File "C:\Python25\lib\site-packages\pytz\tzfile.py", line 30, in build_tzinfo typecnt, charcnt) = unpack(head_fmt, fp.read(head_size)) File "C:\Python25\lib\struct.py", line 87, in unpack return o.unpack(s) error: unpack requires a string argument of length 44
Of course on windows when you untar the package it can't create the symlinks so they end up as empty files.
I'm having what appears to be same problem with Python 2.5.4 and pytz-2012h on Windows Server 2008.
>>> print pytz.timezone( 'US/Eastern' ) 'US/Eastern' ) lib\site- packages\ pytz\__ init__. py", line 181, in timezone cache[zone] = build_tzinfo(zone, fp) lib\site- packages\ pytz\tzfile. py", line 30, in build_tzinfo lib\struct. py", line 87, in unpack
Traceback (most recent call last):
File "<pyshell#43>", line 1, in <module>
print pytz.timezone(
File "C:\Python25\
_tzinfo_
File "C:\Python25\
typecnt, charcnt) = unpack(head_fmt, fp.read(head_size))
File "C:\Python25\
return o.unpack(s)
error: unpack requires a string argument of length 44
Of course on windows when you untar the package it can't create the symlinks so they end up as empty files.