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. 5 1639
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.
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.
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.
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. "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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
| |