Gordon McMillan安装程序和Python 2.4 [英] Gordon McMillan installer and Python 2.4
问题描述
嗨。
感谢Gordon McMillan为python提供了一个非常好的冻结工具。
(我在Windows XP SP2上用它来创建一个-file自解压
基于wxPython的非python应用程序安装脚本。)
最近我升级到了python 2.4,并在我的系统上升级了。 exe文件
安装程序生成的
在启动后立即崩溃。我使用
版本6a2的安装程序。
以下步骤引发崩溃:
1)制作一个文件你好。 py与内容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
>
在Visual Studio 2003中捕获崩溃,给出以下消息:
run.exe中0x7c918fea处的未处理异常:0xC0000005:访问
违规写入位置0x00000010 。
调用堆栈很长,但是从
ntdll.dll开始!7c918fea()
python24.dll! 1e062ac4()
MSVCR71.dll!_getptd()第319行C
MSVCR71.dll!isalpha(int c = 58)第48行+ 0x5 C
python24.dll!1e06350d()
有没有其他人在2.4上使用McMillans安装程序?
感谢您的帮助。
-Svein
说真的,如果你只对Windows感兴趣,只需使用py2exe,或者如果你需要Linux + +
Windows,试试cx_Freeze。
>说真的,如果你只对Windows感兴趣,只需使用py2exe,或者如果你想要Linux + Windows,请尝试cx_Freeze。
根据cx_Freeze和py2exe的命令行帮助,他们
无法将我的程序与其他安装文件打包成一个
自解压.exe文件(这就是我想要这样做。
我错了吗?
McMillan的安装程序让我可以轻松地为python 2.3做这个,但是
在python 2.4上崩溃。
-Svein
Svein Brekke写道:说真的,如果你只对Windows感兴趣,只需使用py2exe,
或者你想要Linux + Windows,试试cx_Freeze。
根据cx_Freeze和py2exe的命令行帮助,他们无法将我的程序与其他安装文件打包成一个
自解压.exe文件(这就是我想要做的)。
我错了吗?
你是对的,但是这并不代表py2exe不适合你。打包
一个程序,显示许可证,选择安装目录
不是特定于Python的,只需使用通用安装程序。它们更好
因为它们拥有的用户比Python特定的安装程序多得多。
参见例如 http://nsis.sourceforge.net/features/featurelist/
使用py2exe捆绑python核心,扩展和你的程序进入
一个目录,然后使用nsis创建安装程序。
Serge。
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
Seriously, if you''re only interested in Windows, just use py2exe, or if
you want Linux+Windows, try cx_Freeze.
> Seriously, if you''re only interested in Windows, just use py2exe, or ifyou 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
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.
这篇关于Gordon McMillan安装程序和Python 2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!