I have the code snippet to make this work, I will post when I'm at my computer. 

~mark

-----Original Message-----
From: "Cristián Serpell" <cserp...@gmail.com>
Sent: ‎4/‎6/‎2015 10:48 AM
To: "cx-freeze-users@lists.sourceforge.net" 
<cx-freeze-users@lists.sourceforge.net>
Subject: [cx-freeze-users] pytz + virtualenv

Hi cx freeze users,I have been trying to do this for a while. I used to freeze 
executables having pytz library normally, but I was doing it with python 
libraries installed in my system. Now for several reasons I started used 
virtualenv, and my cx freeze script stopped to work.I run my cx_Freeze setup 
file normally using virtualenv python interpreter, but then when I try to 
execute my program, pytz doesn't find the files, probably because if you see 
the error below, it is searching them in the original directory of virtualenv 
where they were located. I checked the time zone files are located correctly 
into the zip file.Do you have any clue on how to do this? Thanks for your 
helpThis is the error message I get when trying to run my bundled 
program:cserpell@e431:~/src/build/exe.linux-x86_64-2.7$ 
./validate/home/cserpell/src/build/exe.linux-x86_64-2.7/library.zip/distutils/__init__.py:14:
 UserWarning: The virtualenv distutils package at %s appears to be in the same 
location as the system distutils?Traceback (most recent call last):  File 
"/home/cserpell/src/virtualenvtest/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py",
 line 27, in <module>    exec(code, m.__dict__)  File "scripts/validate.py", 
line 9, in <module> File "/home/cserpell/src/scripts/script.py", line 15, in 
<module> from common import time_util File 
"/home/cserpell/src/common/time_util.py", line 31, in <module> SCL_TZ = 
pytz.timezone('America/Santiago') File 
"/home/cserpell/src/virtualenvtest/local/lib/python2.7/site-packages/pytz/__init__.py",
 line 180, in timezone raise UnknownTimeZoneError(zone) 
pytz.exceptions.UnknownTimeZoneError: 'America/Santiago'
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to