473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Gordon McMillan installer and Python 2.4

Hi.

Thank you Gordon McMillan for a very nice freeze tool for python.
(I use it on Windows XP SP2 for creating a single-file self-extracting
wxPython based installation script for a non-python application.)

Recently I upgraded to python 2.4, and on my system any .exe file
generated by the installer crashes immediately after startup. I use
version 6a2 of the installer.

The following steps provokes the crash:
1) Make a file hello.py with contents "print 'hello world'"
2) python c:/installer/Configure.py
3) python c:/installer/Makespec.py --onefile hello.py
4) python c:/installer/Build.py hello.spec
5) hello.exe

Catching the crash in Visual Studio 2003, gives the following message:
Unhandled exception at 0x7c918fea in run.exe: 0xC0000005: Access
violation writing location 0x00000010.

The call stack is quite long, but starts with
ntdll.dll!7c918fea()
python24.dll!1e062ac4()
MSVCR71.dll!_getptd() Line 319 C
MSVCR71.dll!isalpha(int c=58) Line 48 + 0x5 C
python24.dll!1e06350d()
Has anyone else succeded in using McMillans installer on 2.4?
Thanks for any help.

-Svein
Jul 18 '05 #1
10 5383
Seriously, if you're only interested in Windows, just use py2exe, or if
you want Linux+Windows, try cx_Freeze.

Jul 18 '05 #2
> Seriously, if you're only interested in Windows, just use py2exe, or if
you want Linux+Windows, try cx_Freeze.


According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).

Am I wrong on this?

McMillan's installer lets me easily do this for python 2.3, but
crashes on python 2.4.

-Svein
Jul 18 '05 #3
Svein Brekke wrote:
Seriously, if you're only interested in Windows, just use py2exe,
or if you want Linux+Windows, try cx_Freeze.


According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).

Am I wrong on this?


You're right, but that doesn't mean py2exe is not for you. Packing
a program, displaying a license, choosing installation directory
is not Python specific, just use a generic installer. They are better
because they have much more users than Python specific installers.
See for example http://nsis.sourceforge.net/features/featurelist/

Use py2exe to bundle python core, extentions and your program into
one directory, then use nsis to create the installator.

Serge.

Jul 18 '05 #4
Svein Brekke wrote:
Seriously, if you're only interested in Windows, just use py2exe, or if
you want Linux+Windows, try cx_Freeze.

According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).

Am I wrong on this?


As far as py2exe goes, no, you're not wrong.

On the other hand, there are readily available utilities that
will do what you are asking for, independent of Python and py2exe
and everything else. Standalone single-file packagers.

Unfortunately I don't recall the names of any, but I'm pretty
sure you can find one if you look, or someone else will remind
us of the names.

-Peter
Jul 18 '05 #5
In article <11*********************@f14g2000cwb.googlegroups. com>,
"Serge Orlov" <Se*********@gmail.com> wrote:
Svein Brekke wrote:
Seriously, if you're only interested in Windows, just use py2exe,
or if you want Linux+Windows, try cx_Freeze.


According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).

Am I wrong on this?


You're right, but that doesn't mean py2exe is not for you. Packing
a program, displaying a license, choosing installation directory
is not Python specific, just use a generic installer. They are better
because they have much more users than Python specific installers.
See for example http://nsis.sourceforge.net/features/featurelist/

Use py2exe to bundle python core, extentions and your program into
one directory, then use nsis to create the installator.


It's not so much about the installation I suppose. A friend of mine is
packaging an app for Windows, and he _really_ likes the installed thing
to be a single-file .exe, not a folder with many things. Apparently
McMillan Installer does that very nicely. Too bad it doesn't support
Python 2.4 (yet).

Just
Jul 18 '05 #6

[Svein]
According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).
[Peter] On the other hand, there are readily available utilities that
will do what you are asking for, independent of Python and py2exe
and everything else. Standalone single-file packagers.


InnoSetup is the most popular free single-file-installer generator for
Windows. NSIS is probably second.

--
Richie Hindle
ri****@entrian.com

Jul 18 '05 #7
> > According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).

Am I wrong on this?


As far as py2exe goes, no, you're not wrong.

On the other hand, there are readily available utilities that
will do what you are asking for, independent of Python and py2exe
and everything else. Standalone single-file packagers.


Beeing able to use python to specify the installers behaviour (like
checking what files to install on different systems, decrypting
archives, etc.) is for me very attractive. AND, I have functional and
well tested version on python 2.3. Hence, the best options seems at
the moment to be: keep using python 2.3.

-Svein
Jul 18 '05 #8
On 2 Mar 2005 15:29:21 -0800, sv***@start.no (Svein Brekke) wrote:
Thank you Gordon McMillan for a very nice freeze tool for python.
Yes, thanks a lot.
Recently I upgraded to python 2.4, and on my system any .exe file
generated by the installer crashes immediately after startup.


Yes, I can confirm this observation. The same on my machine: any .exe
crashes immediately. I too have the feeling the McMillan installer has
benefits (I justed started playing with installers). But py2exe seems
to work better at the moment.

mb - Martin

Jul 18 '05 #9
Richie Hindle wrote:
[Svein]
According to the command line help for cx_Freeze and py2exe, they
cannot pack my program with additional installation files into one
self-extracting .exe file (which is what I want to do).


[Peter]
On the other hand, there are readily available utilities that
will do what you are asking for, independent of Python and py2exe
and everything else. Standalone single-file packagers.


InnoSetup is the most popular free single-file-installer generator for
Windows. NSIS is probably second.


I'm not sure now, but I *think* the OP actually wanted one
of those beasties which will literally *run* from a single
EXE file, not just install from one in the usual way.

The only ones of which I'm aware are usually called something
like "self-executing zip files" and they -- invisibly to the
user -- will temporarily extract themselves into a temporary
folder, run the main exe, and then (optionally) clean up
completely after the application exits, removing all temporary
files.

-Peter
Jul 18 '05 #10
sv***@start.no (Svein Brekke) writes:
Has anyone else succeded in using McMillans installer on 2.4?
Thanks for any help.


I have a feeling that it may be related to the fact that the starter
modules (run*.exe) were built with VC6, which matches with Python
builds up to 2.3, but not 2.4 (which is built with VC7). So you're
probably running into a mismatch between C runtime libraries.

Since it sounds like you have VS 2003 available to you, you might try
rebuilding the appropriate run*.exe (the source is in the installer
tree beneath the source directory). VS 2003 should auto-convert the
..dsw/.dsp files but there's at least one dependency (zlib) that you
might have to build separately and handle manually (e.g., update the
project to locate your particular zlib library).

-- David
Jul 18 '05 #11

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

Similar topics

0
by: achrist | last post by:
After using the McMillan installer and executables built with it for a while, I've noticed some residual files accumulating on my disk. The installer docs mentions these. Here's code I wrote...
1
by: Ajay Bakhshi | last post by:
Hi, I have Python-2.2.3/ Mcmillian Installer: _5b5_5 System: HP 11.11 64 bit. Installer + Python were build with 64 bit support (Compiler flag: +DD64) I have a Python file...
1
by: bap | last post by:
Is anyone else having problems accessing the Mcmillan installer web site (www.mcmillan-inc.com)? I get a no permission error message - so I don't know if my ISP is blocked or something is wrong...
2
by: Federico | last post by:
Hi, Where can I download the mcmillan installer utility? http://www.mcmillan-inc.com/ doesn't exist anymore? Thanks
0
by: ..:: sjf ::.. | last post by:
Hi all, When I freeze Python script into _ONE_ EXE file with McMillan Installer (ver. 5b5) and then run it says: "MemoryError". Next I freeze it with --debug option and then run again. It says:...
1
by: Sion Arrowsmith | last post by:
We have an application which we distribute as a .exe as created with the McMillan installer, plus a suite of "plugins" which can also be run as standalone applications for internal use. The...
1
by: Chris | last post by:
I would like to be able to "package-up" a Python application on my development platform (Linux) so that it can be easily distributed and installed on Windows and UNIX e.g. HP-UX, AIX etc. I'd...
4
by: mrmakent | last post by:
3 quick questions for the newsgroup: 1. Does anyone know why McMillan Installer 5b5 does not work with Python 2.4 under Linux (works with Python 2.3 just fine), and how to fix it? 2. Will...
5
by: Hartmut Goebel | last post by:
Hi, has anybody used McMillan Installer, PyInstall or py2exe cross-platform? I have a Windows partition with Python installed there, so this would "only" required working on a different...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
Oralloy
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,...
0
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...

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.