By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

py2exe problem - need wsvc6?

P: n/a
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
incomprehensible despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.
Jul 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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='Test',
description="a Test",
version='0.1.0',
console=['pTest.py'])
#build.bat
e:\Python23\python.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
incomprehensible despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #2

P: n/a
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='Test',
description="a Test",
version='0.1.0',
console=['pTest.py'])
#build.bat
e:\Python23\python.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
incomprehensible despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #3

P: n/a
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='Test',
description="a Test",
version='0.1.0',
console=['pTest.py'])
#build.bat
e:\Python23\python.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
incomprehensible despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #4

P: n/a
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='Test',
description="a Test",
version='0.1.0',
console=['pTest.py'])
#build.bat
e:\Python23\python.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
incomprehensible despite the prodigous "easy to use" claims.

Please help this obviously flustered newbie. Thanks in advance.

Jul 18 '05 #5

P: n/a
"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='Test',
description="a Test",
version='0.1.0',
console=['pTest.py'])
#build.bat
e:\Python23\python.exe setup.py py2exe

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

"Elder" <ti*@axtelle.com> 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 discussion thread is closed

Replies have been disabled for this discussion.