473,769 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe problem - need wsvc6?

I am new to Python and am trying to create a standalone exe from a
python script using py2exe 0.5.0 and Python 2.3 without success. I am
able to generate the appropriate .exe file but it is not executable.
Running it does absolutely nothing.

The sourceforge site says that wsvc6 is required for py2exe. Is this
true? If so, it is contradiction with the python faq which claims
that no C compiler is necessary with py2exe.

I also tried Gordon Mcmillan's installer which I found completely
incomprehensibl e despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.
Jul 18 '05 #1
5 1658
You do not need a C compiler to make a standalone application.
In version 0.5 the setup.py files changed a bit.

First of all can you run your python script on the commandline?

I have a hello world app as follows:

#pTest.py
print "Hello World"

#setup.py
from distutils.core import setup
import py2exe
setup(name='Tes t',
description="a Test",
version='0.1.0' ,
console=['pTest.py'])
#build.bat
e:\Python23\pyt hon.exe setup.py py2exe

Try to build this app and see if your py2exe is setup correctly.

-Aaron
http://metrony.com

Tim Axtelle wrote:
I am new to Python and am trying to create a standalone exe from a
python script using py2exe 0.5.0 and Python 2.3 without success. I am
able to generate the appropriate .exe file but it is not executable.
Running it does absolutely nothing.

The sourceforge site says that wsvc6 is required for py2exe. Is this
true? If so, it is contradiction with the python faq which claims
that no C compiler is necessary with py2exe.

I also tried Gordon Mcmillan's installer which I found completely
incomprehensibl e despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #2
You do not need a C compiler to make a standalone application.
In version 0.5 the setup.py files changed a bit.

First of all can you run your python script on the commandline?

I have a hello world app as follows:

#pTest.py
print "Hello World"

#setup.py
from distutils.core import setup
import py2exe
setup(name='Tes t',
description="a Test",
version='0.1.0' ,
console=['pTest.py'])
#build.bat
e:\Python23\pyt hon.exe setup.py py2exe

Try to build this app and see if your py2exe is setup correctly.

-Aaron
http://metrony.com

Tim Axtelle wrote:
I am new to Python and am trying to create a standalone exe from a
python script using py2exe 0.5.0 and Python 2.3 without success. I am
able to generate the appropriate .exe file but it is not executable.
Running it does absolutely nothing.

The sourceforge site says that wsvc6 is required for py2exe. Is this
true? If so, it is contradiction with the python faq which claims
that no C compiler is necessary with py2exe.

I also tried Gordon Mcmillan's installer which I found completely
incomprehensibl e despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #3
You do not need a C compiler to make a standalone application.
In version 0.5 the setup.py files changed a bit.

First of all can you run your python script on the commandline?

I have a hello world app as follows:

#pTest.py
print "Hello World"

#setup.py
from distutils.core import setup
import py2exe
setup(name='Tes t',
description="a Test",
version='0.1.0' ,
console=['pTest.py'])
#build.bat
e:\Python23\pyt hon.exe setup.py py2exe

Try to build this app and see if your py2exe is setup correctly.

-Aaron
http://metrony.com

Tim Axtelle wrote:
I am new to Python and am trying to create a standalone exe from a
python script using py2exe 0.5.0 and Python 2.3 without success. I am
able to generate the appropriate .exe file but it is not executable.
Running it does absolutely nothing.

The sourceforge site says that wsvc6 is required for py2exe. Is this
true? If so, it is contradiction with the python faq which claims
that no C compiler is necessary with py2exe.

I also tried Gordon Mcmillan's installer which I found completely
incomprehensibl e despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #4
It just opens a window which immediately closes.

Thanks for your help.
"Aaron" <aa***@metrony. com> wrote in message
news:40******** ******@metrony. com...
You do not need a C compiler to make a standalone application.
In version 0.5 the setup.py files changed a bit.

First of all can you run your python script on the commandline?

I have a hello world app as follows:

#pTest.py
print "Hello World"

#setup.py
from distutils.core import setup
import py2exe
setup(name='Tes t',
description="a Test",
version='0.1.0' ,
console=['pTest.py'])
#build.bat
e:\Python23\pyt hon.exe setup.py py2exe

Try to build this app and see if your py2exe is setup correctly.

-Aaron
http://metrony.com

Tim Axtelle wrote:
I am new to Python and am trying to create a standalone exe from a
python script using py2exe 0.5.0 and Python 2.3 without success. I am
able to generate the appropriate .exe file but it is not executable.
Running it does absolutely nothing.

The sourceforge site says that wsvc6 is required for py2exe. Is this
true? If so, it is contradiction with the python faq which claims
that no C compiler is necessary with py2exe.

I also tried Gordon Mcmillan's installer which I found completely
incomprehensibl e despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #5
"Aaron" <aa***@metrony. com> wrote in message
news:40******** ******@metrony. com...
You do not need a C compiler to make a standalone application.
MSVC6 is *only* required if you want to build py2exe itself from the
sources. If you install the binary package, you won't need it. More
below.
In version 0.5 the setup.py files changed a bit.

First of all can you run your python script on the commandline?

I have a hello world app as follows:

#pTest.py
print "Hello World"

#setup.py
from distutils.core import setup
import py2exe
setup(name='Tes t',
description="a Test",
version='0.1.0' ,
console=['pTest.py'])
#build.bat
e:\Python23\pyt hon.exe setup.py py2exe

Try to build this app and see if your py2exe is setup correctly.

"Elder" <ti*@axtelle.co m> writes:
It just opens a window which immediately closes.


What did you expect ;-) ? The exe is a console program, when you
double-click it in the explorer, it opens a console ("command prompt")
window, prints 'Hello, World', and then the console window closes again
- probably faster then you can recognize the output.

To see what this program does, you should open a command prompt window
yourself, navigate (with 'cd directory') to the directory where your exe
file is, and start it by entering 'pTest.exe'.

You can prevent that the console window in the first case closes
immediately by adding a 'raw_input()' call to the script pTest.py at the
end.

Thomas
Jul 18 '05 #6

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.
2
17715
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
2
3355
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.
2
3674
by: Thomas Heller | last post by:
"Brad Clements" <bkc@murkworks.com> writes: > Once again I apologize for posting this py2exe question in the ctypes list. ;-) In the long run, this will be the wrong forum. I suggest comp.lang.python (or should a py2exe mailing list be created?). And I'm cc'ing to python-list. > > I need to ship a Windows service in py2exe, but I also want a
3
5724
by: Werner Merkl | last post by:
Hi, Python is really great, for small to big programs. For my colleagues and some circumstances I sometimes need to "compile" a script using py2exe. Cause I use Windows, I like to use the (Windows) ability, to add some version infos, comments, etc to the exe file. If I use explorer to check, these properties are visible and correct.
1
2593
by: Funduk | last post by:
Hello, So I've been playing with Python and Pygame for a while and I decided I wanted to make a real executable so I could send that stuff over to my friends to show off my <sarcasm>maad skillz</sarcasm>. Everything was going great I went and got all the newest software (including Distutils and PY2EXE) and read the docs on making a setup py.
4
3595
by: Werner Merkl | last post by:
Hi, we have written a Python EXE program, which should run via AUTORUN.INF from a CD/DVD (Windows of course). For this CD/DVD we us a imaging tool from Microsoft, which seam to generate a pure ISO 9660 level 1 image.
4
4011
by: bwaha | last post by:
First time trying to create an executable with py2exe. I have a small program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'), matplotlib ('0.83.2'), win32com (latest?), Numeric ('23.7') on Windows XP & Win2000. The program runs without problem but as an exe it doesn't even get to showing the GUI. I get the following error log when I run the executable. Traceback (most recent call last): File "mpival3.py", line 1264, in ?
4
34893
true911m
by: true911m | last post by:
Here's a little walkthrough to get py2exe up and running. I'm not an expert, so I can't help much with any problems you might have. This is what worked for me. The result here will be to convert a simple python app into a single .exe file that can be copied and run on any Windows XP machine. It may work on many other Windows platforms, but I haven't tested it. You'll need a working Python installation first, preferably v2.3 or later. ...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10038
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
9987
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
6662
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
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
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
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.