import * and py2exe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Sijben

    import * and py2exe

    I am trying to turn my application into a WinXP exe. Py2exe has packaged
    all my files up into one humongous executable. When trying to run the
    app, it complains that it can not find modules I just saw it include.
    These invariably are modules that have been imported using
    from <modulenameimpo rt *
    Apparently this confuses py2exe. Well I tried unconfusing it by giving
    those modules as imports in the first place!

    How can I convince the py2exe-generated app to look for those modules in
    its own .exe file???

    Paul
  • Larry Bates

    #2
    Re: import * and py2exe

    Paul Sijben wrote:
    I am trying to turn my application into a WinXP exe. Py2exe has packaged
    all my files up into one humongous executable. When trying to run the
    app, it complains that it can not find modules I just saw it include.
    These invariably are modules that have been imported using
    from <modulenameimpo rt *
    Apparently this confuses py2exe. Well I tried unconfusing it by giving
    those modules as imports in the first place!
    >
    How can I convince the py2exe-generated app to look for those modules in
    its own .exe file???
    >
    Paul
    Don't try to bundle everything into a single .EXE (this is fraught with
    "issues"). Drop back to bundle=1 or bundle=2 and it should work for you.

    -Larry

    Comment

    Working...