Index
2009-06-26 15:08 – Fiyawerx : [dabo-users] Trying to create an exe from a dabo app
2009-06-26 17:45 – Paul McNett : Re: [dabo-users] Trying to create an exe from a dabo app
2009-06-29 16:43 – Fiyawerx : Re: [dabo-users] Trying to create an exe from a dabo app
2009-06-29 17:06 – Paul McNett : Re: [dabo-users] Trying to create an exe from a dabo app
2009-06-29 17:35 – Fiyawerx : Re: [dabo-users] Trying to create an exe from a dabo app
Back to top
[dabo-users] Trying to create an exe from a dabo app

Author: Fiyawerx

Posted: 2009-06-26 15:08:48   Link

Hello, I've tried googling around for quite a bit regarding these but havn't

seen the right solution yet. It is possible that I've seen it and not

understood it at the time, but I figured I would throw it out here as well.

I wanted to create a gui app for a tool I use here at work, and created it

using the dabo class designer for my gui. I don't have any db functionality,

and really only used dabo for the gui framework. I'm trying to convert this

program to an exe and can't seem to find the best way to do it. After

reading about several dll issues with python 2.6, I removed it all,

installed 2.5 and the other pre-req's for that version, and the program is

running great as a py app.

When I try to use cx_freeze or py2exe, It is creating it ok, but when the

program tries to run it gets -

C:\Projects\swotd\dist>main

Traceback (most recent call last):

File "c:\Python25\lib\site-packages\cx_Freeze\initscripts\Console.py",

line 29

, in <module>

exec code in m.__dict__

File "main.py", line 3, in <module>

File "c:\Python25\dabo\__init__.py", line 130, in <module>

dLocalize.install("dabo")

File "c:\Python25\dabo\dLocalize.py", line 56, in install

setLanguage(_defaultLanguage, _defaultEncoding)

File "c:\Python25\dabo\dLocalize.py", line 76, in setLanguage

daboTranslation = gettext.translation("dabo", daboLocaleDir,

languages=lang,

codeset=charset)

File "c:\Python25\lib\gettext.py", line 469, in translation

raise IOError(ENOENT, 'No translation file found for domain', domain)

IOError: [Errno 2] No translation file found for domain: 'dabo'

Any advice would be greatly appreciated. I do understand that I'm not using

Dabo to it's full extent yet, but I plan on getting there.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2009 Fiyawerx
Back to top
Re: [dabo-users] Trying to create an exe from a dabo app

Author: Paul McNett

Posted: 2009-06-26 17:45:32   Link

Fiyawerx wrote:

> Hello, I've tried googling around for quite a bit regarding these but havn't

> seen the right solution yet. It is possible that I've seen it and not

> understood it at the time, but I figured I would throw it out here as well.

>

> I wanted to create a gui app for a tool I use here at work, and created it

> using the dabo class designer for my gui. I don't have any db functionality,

> and really only used dabo for the gui framework. I'm trying to convert this

> program to an exe and can't seem to find the best way to do it. After

> reading about several dll issues with python 2.6, I removed it all,

> installed 2.5 and the other pre-req's for that version, and the program is

> running great as a py app.

>

> When I try to use cx_freeze or py2exe, It is creating it ok, but when the

> program tries to run it gets -

> IOError: [Errno 2] No translation file found for domain: 'dabo'

>

> Any advice would be greatly appreciated. I do understand that I'm not using

> Dabo to it's full extent yet, but I plan on getting there.

See my setup.py which will create an app bundle on Mac using py2app, and

an exe on Windows using py2exe. Basically, you need some stuff to direct

the exe to the locale directory.

http://trac.dabodev.com/wiki/setup.py

Paul

©2009 Paul McNett
Back to top
Re: [dabo-users] Trying to create an exe from a dabo app

Author: Fiyawerx

Posted: 2009-06-29 16:43:36   Link

Thanks Paul,

With some editing I've been able to get it to wrap up the program, but now

when I try to run it, I get an error telling me to check the main log, and

it's not actually printing any errors, just blank. Going to try to go

through your setup file again and make sure I'm not doing anything stupid.

Mostly it was setting the variable names in the file itself and removing

some references to your manifest and other such.

Can anyone point me in the right direction for removing your menu bars

altogether from an app? I thought I had read that you can do it by setting

MenubarClass to None, and I had set that with a custom property, and it

seemed to work in my python app, but then when it exe's I end up getting an

unknown error about getMenuBarClass method, is there a 'proper' way to

disable a menu bar? I don't need one at all in this application.

On Fri, Jun 26, 2009 at 5:45 PM, Paul McNett <p@ulmcnett.com> wrote:

> Fiyawerx wrote:

> > Hello, I've tried googling around for quite a bit regarding these but

> havn't

> > seen the right solution yet. It is possible that I've seen it and not

> > understood it at the time, but I figured I would throw it out here as

> well.

> >

> > I wanted to create a gui app for a tool I use here at work, and created

> it

> > using the dabo class designer for my gui. I don't have any db

> functionality,

> > and really only used dabo for the gui framework. I'm trying to convert

> this

> > program to an exe and can't seem to find the best way to do it. After

> > reading about several dll issues with python 2.6, I removed it all,

> > installed 2.5 and the other pre-req's for that version, and the program

> is

> > running great as a py app.

> >

> > When I try to use cx_freeze or py2exe, It is creating it ok, but when the

> > program tries to run it gets -

> > IOError: [Errno 2] No translation file found for domain: 'dabo'

> >

> > Any advice would be greatly appreciated. I do understand that I'm not

> using

> > Dabo to it's full extent yet, but I plan on getting there.

>

> See my setup.py which will create an app bundle on Mac using py2app, and

> an exe on Windows using py2exe. Basically, you need some stuff to direct

> the exe to the locale directory.

>

> http://trac.dabodev.com/wiki/setup.py

>

> Paul

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message:

> http://leafe.com/archives/byMID/4A45417C.5070204@ulmcnett.com

>

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2009 Fiyawerx
Back to top
Re: [dabo-users] Trying to create an exe from a dabo app

Author: Paul McNett

Posted: 2009-06-29 17:06:25   Link

Fiyawerx wrote:

> With some editing I've been able to get it to wrap up the program, but now

> when I try to run it, I get an error telling me to check the main log, and

> it's not actually printing any errors, just blank. Going to try to go

> through your setup file again and make sure I'm not doing anything stupid.

> Mostly it was setting the variable names in the file itself and removing

> some references to your manifest and other such.

What version of py2exe are you using? I vaguely remember something like

that for older versions.

What is your bundle setting? Here's the file I use (buildwin.bat) for

building my exe:

{{{

del /q dist

rmdir /s /q dist build

rem --> must be --bundle 3 for pywincomm to work...

python -OO setup.py py2exe --bundle 3 %1

rem python -OO setup.py py2exe

copy c:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\MSVCP71.dll dist

copy c:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll dist

copy c:\windows\system32\mfc71.dll dist

move dist\main*.exe dist\shutter_studio.exe

iscc setup.iss

}}}

The iscc line is for innosetup. I run buildwin.bat which runs py2exe and

then innosetup leaving me with a setup.exe file for the application.

This is what I distribute.

It's been working well for about 3 years now.

> Can anyone point me in the right direction for removing your menu bars

> altogether from an app? I thought I had read that you can do it by setting

> MenubarClass to None, and I had set that with a custom property, and it

> seemed to work in my python app, but then when it exe's I end up getting an

> unknown error about getMenuBarClass method, is there a 'proper' way to

> disable a menu bar? I don't need one at all in this application.

Can you show us the exact output you get when setting form.MenuBarClass

to None? Probably the de-facto way to not have a menubar is to set

form.ShowMenuBar to False.

http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.dForm.dForm.html#Properties_ShowMenuBar

Paul

©2009 Paul McNett
Back to top
Re: [dabo-users] Trying to create an exe from a dabo app

Author: Fiyawerx

Posted: 2009-06-29 17:35:20   Link

Thanks for the info Paul. Work's about out so I'll give this a shot tomorrow

AM and report back. Appreciate the help.

On Mon, Jun 29, 2009 at 5:06 PM, Paul McNett <p@ulmcnett.com> wrote:

> Fiyawerx wrote:

> > With some editing I've been able to get it to wrap up the program, but

> now

> > when I try to run it, I get an error telling me to check the main log,

> and

> > it's not actually printing any errors, just blank. Going to try to go

> > through your setup file again and make sure I'm not doing anything

> stupid.

> > Mostly it was setting the variable names in the file itself and removing

> > some references to your manifest and other such.

>

> What version of py2exe are you using? I vaguely remember something like

> that for older versions.

>

> What is your bundle setting? Here's the file I use (buildwin.bat) for

> building my exe:

>

> {{{

> del /q dist

> rmdir /s /q dist build

>

> rem --> must be --bundle 3 for pywincomm to work...

> python -OO setup.py py2exe --bundle 3 %1

> rem python -OO setup.py py2exe

>

> copy c:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\MSVCP71.dll dist

> copy c:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll dist

> copy c:\windows\system32\mfc71.dll dist

>

> move dist\main*.exe dist\shutter_studio.exe

> iscc setup.iss

> }}}

>

> The iscc line is for innosetup. I run buildwin.bat which runs py2exe and

> then innosetup leaving me with a setup.exe file for the application.

> This is what I distribute.

>

> It's been working well for about 3 years now.

>

>

> > Can anyone point me in the right direction for removing your menu bars

> > altogether from an app? I thought I had read that you can do it by

> setting

> > MenubarClass to None, and I had set that with a custom property, and it

> > seemed to work in my python app, but then when it exe's I end up getting

> an

> > unknown error about getMenuBarClass method, is there a 'proper' way to

> > disable a menu bar? I don't need one at all in this application.

>

> Can you show us the exact output you get when setting form.MenuBarClass

> to None? Probably the de-facto way to not have a menubar is to set

> form.ShowMenuBar to False.

>

>

> http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.dForm.dForm.html#Properties_ShowMenuBar

>

> Paul

> _______________________________________________

> Post Messages to: Dabo-users@leafe.com

> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

> Searchable Archives: http://leafe.com/archives/search/dabo-users

> This message:

> http://leafe.com/archives/byMID/4A492CD1.4060003@ulmcnett.com

>

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2009 Fiyawerx