Cool. Cool. End-user has no rights, so, MSI is out, but this EXE will be fine for them; I'll create a log file and save that for the user.
Thanks again. Excellent contribution to the Python community. On Mon, Aug 22, 2011 at 11:47 AM, Anthony Tuininga < [email protected]> wrote: > You're welcome. > > Yes, your EXE is dependent on all files in the build directory. You > can create an MSI that will package everything up by using bdist_msi > instead of the build command. > > python setup.py bdist_msi > > If you are using Win32GUI base you cannot do any print > statements....unless you are using wxPython which catches those and > creates a window -- which still doesn't look all that good. Logging is > the way to go if you need that sort of thing. You can use the logging > module built into Python or my cx_Logging depending on your needs. > > Anthony > > On Mon, Aug 22, 2011 at 9:25 AM, David Touchette > <[email protected]> wrote: > > Wicked awesome! Thanks Anthony & Hien, including the lxml package and > > running the EXE from the build folder did the trick. Presumably my EXE > will > > be dependent on everything in that build directory(?). > > An unrelated question, but my script sends out to the console some > debugging > > info via "print()", is there any way to return that to the Windows > command > > line, or am I writing a log file now? > > > > On Sun, Aug 21, 2011 at 12:49 AM, Anthony Tuininga > > <[email protected]> wrote: > >> > >> The first directive for packages is required. The second one for > >> includes is not since the packages directive forces all submodules in > >> that package to be loaded anyway. > >> > >> Anthony > >> > >> On Sat, Aug 20, 2011 at 10:07 AM, Pham, Hien <[email protected]> > >> wrote: > >> > Try adding both packages and includes – It work for me > >> > > >> > packages = ['lxml'] > >> > > >> > includes = > >> > ['lxml','lxml.etree','lxml._elementpath','lxml.ElementInclude'] > >> > > >> > > >> > > >> > > >> > > >> > From: David Touchette [mailto:[email protected]] > >> > Sent: Friday, August 19, 2011 5:06 PM > >> > To: [email protected] > >> > Subject: [cx-freeze-users] no module named lxml > >> > > >> > > >> > > >> > Greetings, > >> > > >> > > >> > > >> > I'm trying to freeze a relatively simple script, but without much > luck. > >> > > >> > > >> > > >> > Win7 x64 || XP 32 > >> > > >> > Python 3.2 || Python 2.7 > >> > > >> > Latest sourceforge download of cx_freeze > >> > > >> > > >> > > >> > The error I get is: > >> > > >> > > >> > > >> > --------------------------- > >> > > >> > cx_Freeze: Python error in main script (traceback unavailable) > >> > > >> > --------------------------- > >> > > >> > Cannot import traceback module. > >> > > >> > Exception: No module named re > >> > > >> > Original Exception: No module named lxml > >> > > >> > --------------------------- > >> > > >> > > >> > > >> > The setup.py I am using is as follows: > >> > > >> > > >> > > >> > --------------------------- > >> > > >> > from cx_Freeze import setup, Executable > >> > > >> > > >> > > >> > includes = ['re', 'lxml.etree', 'gzip', 'inspect'] > >> > > >> > excludes = [] > >> > > >> > packages = [] > >> > > >> > path = [] > >> > > >> > > >> > > >> > EXE_Target = Executable( > >> > > >> > # what to build > >> > > >> > script = "Voltron.py", > >> > > >> > initScript = None, > >> > > >> > base = 'Win32GUI', > >> > > >> > targetDir = r"dist", > >> > > >> > targetName = "voltron.exe", > >> > > >> > compress = True, > >> > > >> > copyDependentFiles = True, > >> > > >> > appendScriptToExe = False, > >> > > >> > appendScriptToLibrary = False, > >> > > >> > icon = None > >> > > >> > ) > >> > > >> > > >> > > >> > setup( > >> > > >> > version = "1.2", > >> > > >> > description = "Legacy file transmorgificationer", > >> > > >> > author = "D. Touchette", > >> > > >> > name = "Voltron Transmorgificationer", > >> > > >> > > >> > > >> > options = {"build_exe": {"includes": includes, > >> > > >> > "excludes": excludes, > >> > > >> > "packages": packages, > >> > > >> > "path": path > >> > > >> > } > >> > > >> > }, > >> > > >> > > >> > > >> > executables = [EXE_Target] > >> > > >> > ) > >> > > >> > --------------------------- > >> > > >> > > >> > > >> > The script reads a file and does an xslt transform and a few tweaks > >> > before > >> > writing out a new XML file. I actually don't use "re" but cx_freeze > was > >> > complaining about not having module re so I included it for fun. > >> > > >> > > >> > > >> > Here is the imports of my script: > >> > > >> > > >> > > >> > --------------------------- > >> > > >> > from lxml import etree > >> > > >> > import re > >> > > >> > import os > >> > > >> > import io > >> > > >> > import time > >> > > >> > --------------------------- > >> > > >> > > >> > > >> > Any help would be great, spent the day researching and trying > different > >> > things. Same error in XP vs. W7 > >> > > >> > > >> > > >> > D. > >> > > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > >> > user administration capabilities and model configuration. Take > >> > the hassle out of deploying and managing Subversion and the > >> > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > >> > _______________________________________________ > >> > cx-freeze-users mailing list > >> > [email protected] > >> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > >> > > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > >> user administration capabilities and model configuration. Take > >> the hassle out of deploying and managing Subversion and the > >> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > >> _______________________________________________ > >> cx-freeze-users mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > > > > > > ------------------------------------------------------------------------------ > > uberSVN's rich system and user administration capabilities and model > > configuration take the hassle out of deploying and managing Subversion > and > > the tools developers use with it. Learn more about uberSVN and get a free > > download at: http://p.sf.net/sfu/wandisco-dev2dev > > > > _______________________________________________ > > cx-freeze-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > > > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > cx-freeze-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
