#144: pytz timezone object creation fails with pyinstaller
-------------------------------------+--------------------------------------
 Reporter:  seahawk1...@…            |       Owner:  giovannibajo   
     Type:  defect                   |      Status:  new            
 Priority:  normal                   |   Milestone:                 
Component:  PyInstaller              |     Version:  PyInstaller 1.3
 Severity:  major                    |    Keywords:  pytz timezone  
-------------------------------------+--------------------------------------
 Hello, I have problems packing the following code in to one *.exe file:
 '''test.py'''
 {{{
 ...
 import pytz
 mytz = pytz.timezone('Europe/Berlin')
 ...
 }}}
 Package ist created using

 ''C:\Python25\pyinstaller-1.3\makespec.py -F --icon=icon.ico test.py


 C:\Python25\pyinstaller-1.3\Build.py test.spec
 ''

 pytz is Version 2009u


 Warntest.txt shows:
 {{{
 W: delayed  __import__ hack detected at line 0 - pytz
 (C:\Users\myuser\Documents\Test\pytz\__init__.pyc)
 }}}
 Traceback when program test.exe is run:

 {{{
 Traceback (most recent call last):
   File "<string>", line 32, in <module>
   File "C:\Users\myuser\Documents\Test\buildtest\out1.pyz/pytz", line 157,
 in timezone
 pytz.UnknownTimeZoneError: 'Europe/Berlin'
 }}}

 Any idea how to prevent this error?

-- 
Ticket URL: <http://www.pyinstaller.org/ticket/144>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project
-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.


Reply via email to