Hi, I'm building a wxPython-based app consisting of a main script importing several others. The no-option build goes great. When I try run the build the parent module runs but I'm getting a NameError for a function named "_()" defined in the parent module but used throughout the imported modules.
I'm using Ubuntu 6.10 Edgy with PyInstaller 1.3, Python 2.4, and wxPython 2.6. I'm creating an experimental linux build for the GanttPV project (http://www.pureviolet.net/ganttpv/) The source version of the program runs fine. The GanttPV code follows the recommended wxPython internationalization method using GNU gettext documented here: http://wiki.wxpython.org/index.cgi/Internationalization#head-b5203f3b3e49ee33aefaf2d8f0d994a063948a88 Throughout the code defining wxWidgets there are calls similar to this: wx.MenuItem(foo, _("Save As..."), bar) When the program enters the main loop it immediately throws the NameError in the first imported module at the location of the first gettext call: "global name "_" not defined" At the top of the first imported script if I catch the exception and return the untranslated string the error propagates to the next imported module using gettext calls. Am I doing something wrong? Thanks, Joel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
