Hello all, I used cx_Freeze to convert a simple app designed in Dabo to a (Windows) exe package just to see the possibilities in developing commercially with Dabo. My very simple app (no db connection) (Simple_app.py) code is an adaptation of the example Hello_msg in the Dabo tutorial pdf from the dabo website.
After running cx_Freeze using the setup.py (codes below), my application compiled sucessfully but my attempt to run the generated exe file produced an error dialog containing the following error message : ***Start error message*** Traceback(most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27 in <module> exec code in m.__dict__ File "Simple_app.py", line 3, in <module> File "C:\Python27\lib\site-packages\dabo-0.9.13-py2.7.egg\dabo\__init__.py", line 186, in <module> dLocalize.install("dabo") File "C:\Python27\lib\site-packages\dabo-0.9.13-py2.7.egg\dabo\dLocalize.py", line 79, in install setLanguage(_defaultLanguage, _defaultEncoding) File "C:\Python27\lib\site-packages\dabo-0.9.13-py2.7.egg\dabo\dLocalize.py", line 113, in setLanguage daboTranslation = gettext.translation("dabo", daboLocaleDir, languages=["en"], codeset = charset) File "C:Python27\Lib\gettext.py", line 469, in translation raise IOError(ENOENT, 'No translation file found for domain', domain) IOError: [Errno 2] No translation file for domain: 'dabo' **End Error message ** I do not have sufficient knowledge to know what's wrong so I'd like help in this direction but I'm surprised I'm having difficulty with such a simple app. I only used cxFreeze because of suggestions gathered online, though I have also tried py2exe unsuccesfully. Any suggestions regarding converting/compiling Dabo apps to exe would be appreciated even if I do not have to use cxFreeze. Thanks. David If needed here are the codes in the scripts: **Setup.py used for cxFreeze import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "hello", version = "0.1", description = "Sample cx_Freeze wxPython script", executables = [Executable("Simple_app.py", base = base)]) *** Simple_app.py code: import os import inspect import dabo from dabo.dApp import dApp def main(): app = dApp() curdir = os.getcwd() # Get the current location's path fname = inspect.getfile(main) pth = os.path.split(fname)[0] if pth: # Switch to that path os.chdir(pth) app.MainFormClass = "Simple_app.cdxml" app.start() # Return to the original location os.chdir(curdir) if __name__ == '__main__': main() **Simple_app.cdxml code: <?xml version="1.0" encoding="cp1252" standalone="no"?> <dForm Name="dForm" Caption="My Test App" SaveRestorePosition="False" Top="154" Height="368" Width="411" designerClass="DesForm" ShowToolBar="True" Left="255"> <dSizer SlotCount="1" designerClass="LayoutSizer" Orientation="Vertical"> <dPanel sizerInfo="{'HAlign': 'Left', 'VAlign': 'Top'}" designerClass="controlMix" BackColor="(128, 128, 128)"> <dSizer SlotCount="2" designerClass="LayoutSizer" Orientation="Vertical"> <dTextBox sizerInfo="{'Border': 5, 'Expand': False}" Height="35" Width="300" FontSize="14" RegID="txtname" designerClass="controlMix" ForceCase="title"></dTextBox> <dButton Caption="What's my name?" sizerInfo="{'Proportion': 1, 'Border': 45, 'Expand': True}" designerClass="controlMix"> <code> <onHit><![CDATA[ def onHit(self, evt): name = self.Form.txtname.Value dabo.ui.info("Hello, %s!" % name, title = "Test App") ]]> </onHit> </code> </dButton> </dSizer> </dPanel> </dSizer> </dForm> --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/CALOAFp=JtgewL_D+b-V-tg4wH_=kfus4MpwOAj97eu6XL=c...@mail.gmail.com