473,756 Members | 6,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Experiences with Py2Exe

Hi,

I am looking for feedback from people that has used or still uses
Py2Exe. I love to program in python, and I would like to use it to
write support tools for our development team, but I cannot require
everyone to install python in their machines, so I was thinking that
Py2Exe would help on that.

The support tools I write are mostly command line driven (no GUI), but
in the future, I would like to write some expert applications that will
contain GUI. I was thinking on using wxPython for the GUI, so I was
wondering how well behaves Py2Exe with the wxPython module.

Other modules I use besides the standard modules are CTypes and the
Perforce python module p4.py. I try not to use any of the win32 stuff,
but I can see how I will have to for some utilitites, so if anyone has
experience with the win32 modules and Py2Exe, any feedback will be
highly appreciated.

Thanks,

Isaac.

Oct 11 '06 #1
9 3640
Isaac Rodriguez wrote:
Hi,

I am looking for feedback from people that has used or still uses
Py2Exe. I love to program in python, and I would like to use it to
write support tools for our development team, but I cannot require
everyone to install python in their machines, so I was thinking that
Py2Exe would help on that.

The support tools I write are mostly command line driven (no GUI), but
in the future, I would like to write some expert applications that will
contain GUI. I was thinking on using wxPython for the GUI, so I was
wondering how well behaves Py2Exe with the wxPython module.
I did a project with wxPython and py2exe. Just great :-) I also used
Inno Setup (http://www.jrsoftware.org/isinfo.php) to create an
installer. You should be able to learn/use both in one day.
Other modules I use besides the standard modules are CTypes and the
Perforce python module p4.py. I try not to use any of the win32 stuff,
but I can see how I will have to for some utilitites, so if anyone has
experience with the win32 modules and Py2Exe, any feedback will be
highly appreciated.

Thanks,

Isaac.
Oct 11 '06 #2
Hi Isaac,
Isaac Rodriguez wrote:
Hi,

I am looking for feedback from people that has used or still uses
Py2Exe. I love to program in python, and I would like to use it to
write support tools for our development team, but I cannot require
everyone to install python in their machines, so I was thinking that
Py2Exe would help on that.

The support tools I write are mostly command line driven (no GUI), but
in the future, I would like to write some expert applications that will
contain GUI. I was thinking on using wxPython for the GUI, so I was
wondering how well behaves Py2Exe with the wxPython module.
My experiences with Py2Exe and wxPython are very good. In fact, the
samples included with Py2Exe include some wxPython samples.

It's also possible to get PyGTK working with Py2exe, but it's a bit
more convoluted. However, the examples on the PyGTK and esp. Py2exe
websites should get you there.

What was more difficult was Amara, but with some tweaking even that
eventually worked.

I have no experience with CTypes, so I can only assume that it will
work... p4.py might be more reason to worry but you'd have to ask
around or try.

PythonWin was painless, no issues at all getting pythonwin/com etc.
stuff to work.
Other modules I use besides the standard modules are CTypes and the
Perforce python module p4.py. I try not to use any of the win32 stuff,
but I can see how I will have to for some utilitites, so if anyone has
experience with the win32 modules and Py2Exe, any feedback will be
highly appreciated.

Thanks,

Isaac.
Oct 11 '06 #3
Isaac Rodriguez wrote:
Hi,

I am looking for feedback from people that has used or still uses
Py2Exe. I love to program in python, and I would like to use it to
write support tools for our development team, but I cannot require
everyone to install python in their machines, so I was thinking that
Py2Exe would help on that.

The support tools I write are mostly command line driven (no GUI), but
in the future, I would like to write some expert applications that will
contain GUI. I was thinking on using wxPython for the GUI, so I was
wondering how well behaves Py2Exe with the wxPython module.

Other modules I use besides the standard modules are CTypes and the
Perforce python module p4.py. I try not to use any of the win32 stuff,
but I can see how I will have to for some utilitites, so if anyone has
experience with the win32 modules and Py2Exe, any feedback will be
highly appreciated.

Thanks,

Isaac.
I've used py2exe extensively over the last couple of years to package up
everything from console apps to Windows services. I've found it to work
extremely well and it produces something that is easily distributable on Windows
platform. In addition to py2exe I also employ Inno Setup
(http://www.jrsoftware.org/isinfo.php) to create a Windows installer for my
applications. Inno can take care of myriad of installation "stuff" that must be
done to make a Windows app easy to distribute for "Windows users". This
combination works VERY well.

It takes a little practice, but it works just fine with wxPython, win32all
extensions, ctypes, etc. If I'm not mistaken, author of ctypes (Thomas Heller)
and py2exe are the same person). I can't speak to Perforce python module as
I've never used it myself. Start with a small console app and them move on to
more complex applications. You may want to take a look at the py2exe newsgroup
(gmane.comp.pyt hon.py2exe) for any questions.

-Larry Bates
Oct 11 '06 #4
>
I did a project with wxPython and py2exe. Just great :-) I also used
Inno Setup (http://www.jrsoftware.org/isinfo.php) to create an
installer. You should be able to learn/use both in one day.
Do you have a specific reason for using Inno Setup and not a Windows
Installer based setup? Will Inno Setup play especially well with py3exe
or was it just the learning curve of using a Windows Installer setup?

I am asking this because I have a lot of experience using the Windows
Installer service, and I also have all the productivity tools available
to create an installer for my tools if I needed to, but now I am
curious about this Inno Setup.

Thanks,

Isaac.

Oct 11 '06 #5
Isaac Rodriguez wrote:
>I did a project with wxPython and py2exe. Just great :-) I also used
Inno Setup (http://www.jrsoftware.org/isinfo.php) to create an
installer. You should be able to learn/use both in one day.

Do you have a specific reason for using Inno Setup and not a Windows
Installer based setup? Will Inno Setup play especially well with py3exe
or was it just the learning curve of using a Windows Installer setup?

I am asking this because I have a lot of experience using the Windows
Installer service, and I also have all the productivity tools available
to create an installer for my tools if I needed to, but now I am
curious about this Inno Setup.

Thanks,

Isaac.
Inno Setup (like Python) is open source so there is no cost.
Normally you have to purchase something to get the Windows Installer.
Since you have the source code (rarely needed because Inno is so
powerful and configurable), you aren't at the mercy of the Windows
Installer (unless they now give it away and I missed something).
I don't think Inno is especially suited for py2exe apps, it just
works very well, is free, and seems to do everything people want in
an installer.

-Larry Bates
Oct 11 '06 #6
Isaac Rodriguez wrote:
>I did a project with wxPython and py2exe. Just great :-) I also used
Inno Setup (http://www.jrsoftware.org/isinfo.php) to create an
installer. You should be able to learn/use both in one day.

Do you have a specific reason for using Inno Setup and not a Windows
Installer based setup? Will Inno Setup play especially well with py3exe
or was it just the learning curve of using a Windows Installer setup?

I am asking this because I have a lot of experience using the Windows
Installer service, and I also have all the productivity tools available
to create an installer for my tools if I needed to, but now I am
curious about this Inno Setup.

Thanks,

Isaac.
The main reason for using Inno Setup is that it is free. Then I quickly
saw that it is powerful and easy to use. And I don't like Microsoft too
much in general, and that's also one of the reasons why I preferred to
stay away from MSI...

I've never used py3exe though, and I can't find an homepage about it, so
I don't know how it is related to py2exe...
Oct 12 '06 #7
Antoine De Groote <an*****@vo.luw rites:
Isaac Rodriguez wrote:
Do you have a specific reason for using Inno Setup and not a
Windows Installer based setup?

The main reason for using Inno Setup is that it is free. Then I
quickly saw that it is powerful and easy to use. And I don't like
Microsoft too much in general, and that's also one of the reasons
why I preferred to stay away from MSI...
To clarify, Inno Setup is released under a free-software license:

<URL:http://www.jrsoftware. org/files/is/license.txt>

which makes it a better bet than non-free software as infrastructure
to build upon.

--
\ "Nothing in life is so exhilarating as to be shot at without |
`\ result." -- Winston Churchill |
_o__) |
Ben Finney

Oct 12 '06 #8
Isaac Rodriguez wrote:
I am asking this because I have a lot of experience using the Windows
Installer service, and I also have all the productivity tools available
to create an installer for my tools if I needed to
just go ahead and use it.

py2exe generates an EXE and (usually) a bunch of related files:

http://www.py2exe.org/index.cgi/FAQ

any tool that can wrap that up and install it on another machine works
just fine.

</F>

Oct 12 '06 #9
MaR
We use py2exe on regular basis for most of our app's, both for internal
and external distribution.
We then pack it to an installer using NSIS
(http://nsis.sourceforge.net/Main_Page) which is also free :o)

Oct 12 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2991
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out "import numarray" allows the exe to run. Left in, I get "4.exe has generated errors" etc. I'm going around and around and there isn't much on Google. py2exe output is last.
1
2397
by: | last post by:
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module. the py2exe shows this errors: warning: py2exe: *************************************************************** ********** warning: py2exe: * The following modules were not found: warning: py2exe: * xml.sax warning: py2exe: * win32con warning: py2exe: * pywintypes
2
3354
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any special extension and how? Below is the output I get as well as a small demo app to reproduce the problem.
0
1720
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added -packages encodings --force-imports encodings). This resolved the codec error. When I tried to create an exe with py2exe I still got the following warnings. Please see the new error I got (after warnings). ...
8
4738
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No parsers found". This only happens when I run the ..EXE; it does not happen if I run the .PY file. When I'm running the .EXE this exception doesn't happen immediately. It happens as soon as I try to create a classReader object. Please see the...
0
2107
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the following output: warning: py2exe: ************************************************************************* warning: py2exe: * The following modules were not found: warning: py2exe: * Carbon.Folder
6
3948
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with Python 2.3) - PIL 1.1.4 - Installer or py2exe : latest versions.
0
1528
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
3122
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.9:
0
9384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9779
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9645
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8645
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6473
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5247
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.