Thread: py2exe

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    346
    Rep Power
    0

    py2exe


    i am going to use py2exe after i have completed my program. The problem is, i use lots of different packages such as wxpython, pyro etc etc. each of these packages i have downloaded and installed on my pc. So how can i get them all in my exe program, and all installed correctly at once?

    Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    I dont know but where can u download them anyway i really have to know to go on

    Thanks
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    346
    Rep Power
    0
    eh?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    That is a serious spam if u dont even write the link or something.
  8. #5
  9. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    You normally don't need to do anything special. Just run py2exe on your main module and py2exe will deep-search it looking for imported modules and pull them into the zip file it creates that supports the exe.

    This works fine for wxPython but I haven't tried with pyro but it should work.

    You may have problems if you use the __import function instead of the import command. In that case you just explicitly specify the module that was not found either as a command line option or in the setup.py script.

    grim
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    346
    Rep Power
    0
    cheers grim
  12. #7
  13. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Originally Posted by monkeyman23555
    That is a serious spam if u dont even write the link or something.
    In general the best way to find a Python module is to use Google [Google is our friend] though there is a pretty big list in the PyPI so it's always a good idea to check that out. Here are a bunch to get you started .

    Technically since this is Yab's thread he can make any sounds he wants -- within reason -- though he was probably just wondering what your post had to do with his Q .

    http://wxpython.org/
    http://pyro.sourceforge.net/
    http://www.python.org/pypi

    Have fun guys,

    Mark.
    programming language development: www.netytan.com Hula

  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    4
    Rep Power
    0
    I've just tried vxApp->py2exe->app.exe path with a simple wxApp from Boa Getting Started Guide.

    And it all works fine but...

    Can I somehow get rid of that console window running in the background?

    Distribution files are almost 8 Mbytes in size. That's a lot. Any way to reduce it? Just don't say Drop VX...
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    35
    Distribution files are almost 8 Mbytes in size. That's a lot. Any way to reduce it? Just don't say Drop VX...
    Not when you compare it like for like it isn't.

    In your 8Mb you get your code, the Python interpreter and all its libraries (~10Mb) and wxWindows (~6Mb download).

    C# or VB.Net require the .Net Framework to run, which is about 16Mb to download.

    Java programs require the Java Runtime (15Mb).

    VB4/5/6 programs require the VBRunX00.dll files.

    Windows C++ programs often use extensions such as MFC which need to be bundled with their installers.

    8Mb isn't much of an install these days. It will easily fit on a CD, or on almost any memory card/USB key. It's a two and a half minute download on 512Kb ADSL.

    The only people who would have problems are dialup users... and they don't exist anymore... do they?
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    Which file of "Boa Constructor" should I download?

    Boa Constructor

    Maybe the "boa-constructor-0.3.1.win32.exe".

    And which "wxPython" do I have to download?

    Could you please make a link to the exact file.

    Where can I get the wxPython 2.4 or what ever it is because when I use the boa constructor it always says I should downgrade my wxPython 2.5 to 2.4.

    Where is the wxpython 2.4? I am desprete
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    4
    Rep Power
    0
    Originally Posted by monkeyman23555
    Which file of "Boa Constructor" should I download?
    Maybe the "boa-constructor-0.3.1.win32.exe".
    And which "wxPython" do I have to download?
    Could you please make a link to the exact file.
    Where can I get the wxPython 2.4 or what ever it is because when I use the boa constructor it always says I should downgrade my wxPython 2.5 to 2.4.
    Where is the wxpython 2.4? I am desprete
    This is my config, it was downloaded week ago so it's pretty fresh..

    Python-2.3.4.exe
    wxPythonWIN32-2.4.2.4u-Py23.exe
    boa-constructor-0.3.0.win32.exe
    py2exe-0.5.4.win32-py2.3.exe


    wxPython is Unicode version, maybe you should go for a standard (ASCII?) versio...
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    4
    Rep Power
    0
    Originally Posted by sfb
    Not when you compare it like for like it isn't.

    In your 8Mb you get your code, the Python interpreter and all its libraries (~10Mb) and wxWindows (~6Mb download).
    C# or VB.Net require the .Net Framework to run, which is about 16Mb to download....
    You're right. Delphi got me used to relatively small execs and distributions. Although, its database support (BDE) is quite large also.
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    Python-2.3.4.exe
    wxPythonWIN32-2.4.2.4u-Py23.exe
    boa-constructor-0.3.0.win32.exe
    py2exe-0.5.4.win32-py2.3.exe
    where can I get the "wxpythonWIN32-2.4.2.4u-Py23.exe"

    Please post a link because i got everything else
  26. #14
  27. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    35
    http://prdownloads.sourceforge.net/wxpython/wxPythonWIN32-2.4.2.4u-Py23.exe?download

    Found through

    http://www.wxpython.org/download.php#binaries
  28. #15
  29. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    Thanks I'll download it now.

    But probably that was to early.

    How do i make a distributive thing?

    Please give examples

IMN logo majestic logo threadwatch logo seochat tools logo