Comment 22 for bug 383171

Revision history for this message
Simon Hibbs (simon-hibbs) wrote :

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.