I have both the latest py24 and py26 on my winxp, which are all binary
build from www.python.org, and can run their tests ok.
Then I installed wxpython for them respectively, of couse they come
from wxpython. The wxpython for py24 runs well, because I have
installed the doc&demo too, the main.py and its items run as expected.
but for wxpython on py26, I searched and found that I have to install
vcredist_x86.exe. If not I get
[code]
e:\prg\py\sap-24\bin\Lib\site-packages\wx-2.8-msw-unicode\docs&demos\samples\sim
e:\prg\py\Python26\python.exe simple.py
Traceback (most recent call last):
File "simple.py", line 7, in <module>
import wx
File "e:\prg\py\Python26\bin\lib\site-packages\wx-2.8-msw-ansi\wx\__init__.py"
, line 45, in <module>
from wx._core import *
File "e:\prg\py\Python26\bin\lib\site-packages\wx-2.8-msw-ansi\wx\_core.py", l
ine 4, in <module>
import _core_
ImportError: DLL load failed: due to wrong configure, the application
can not launch. reinstallation maybe fix this problem
[/code]
So, my problem is, what is the difference between official wxpython on
windows for py24 and py26? Will the py2exe-made exe file runs on all
winxp even without vcredist_x86.exe?
So, my problem is, what is the difference between official wxpython on
windows for py24 and py26? Will the py2exe-made exe file runs on all
winxp even without vcredist_x86.exe?
There is an issue with Python 2.6 which has to do with manifest files. There is a test build of wxPython which contains a fix for this, has been released a few days ago and there is another one which just came out today or yesterday.
You might want to subscribe to the wxPython dev list then you see this announcements or wait a bit until the release comes out.
I have not tried much with Python 2.6 but I would guess that you need to distribute some dll's with a py2exe'ed version as you have to with Python 2.5 and I assume it is the same with Python 2.4. You might want to search the archive of this list and of the py2exe list as there has been quit a bit of traffic on the subject of Python 2.6 and py2exe.
I have both the latest py24 and py26 on my winxp, which are all binary
build from www.python.org, and can run their tests ok.
Then I installed wxpython for them respectively, of couse they come
from wxpython. The wxpython for py24 runs well, because I have
installed the doc&demo too, the main.py and its items run as expected.
but for wxpython on py26, I searched and found that I have to install
vcredist_x86.exe. If not I get
[code]
e:\prg\py\sap-24\bin\Lib\site-packages\wx-2.8-msw-unicode\docs&demos\samples\sim
>e:\prg\py\Python26\python.exe simple.py
Traceback (most recent call last):
File "simple.py", line 7, in <module>
import wx
File "e:\prg\py\Python26\bin\lib\site-packages\wx-2.8-msw-ansi\wx\__init__.py"
, line 45, in <module>
from wx._core import *
File "e:\prg\py\Python26\bin\lib\site-packages\wx-2.8-msw-ansi\wx\_core.py", l
ine 4, in <module>
import _core_
ImportError: DLL load failed: due to wrong configure, the application
can not launch. reinstallation maybe fix this problem
[/code]
So, my problem is, what is the difference between official wxpython on
windows for py24 and py26? Will the py2exe-made exe file runs on all
winxp even without vcredist_x86.exe?
thanx
The difference is quite simple. Python 2.4 and 2.5 (and maybe 2.3) were compiled with Visual Studio 2003 on Windows. Python 2.6 and 3 are compiled with Visual Studio 2008. Unfortunately, 2008 changes the way manifests work or something. See the following article for a good technical explanation:
Besides the manifest issue, since py26 is built with Visual Studio
2008, the users need to install the 2008 version of vcredist_x86.exe.
Before, with py24 and py25, they would need the 2003 version, which is
probably installed with the OS since it's older.
You have two options: ship the 2008 version of vcredist_x86.exe with
your application, or just install the needed DLL's with your
application (e.g. msvcr90.dll, msvcp90.dll) in the same folder as your
py2exe generated exe. You'll also need to add a private assembly
manifest:
Conrado
···
On Mon, May 4, 2009 at 00:13, oyster <lepto.python@gmail.com> wrote:
So, my problem is, what is the difference between official wxpython on
windows for py24 and py26? Will the py2exe-made exe file runs on all
winxp even without vcredist_x86.exe?
So, my problem is, what is the difference between official wxpython on
windows for py24 and py26? Will the py2exe-made exe file runs on all
winxp even without vcredist_x86.exe?
Besides the manifest issue, since py26 is built with Visual Studio
2008, the users need to install the 2008 version of vcredist_x86.exe.
Before, with py24 and py25, they would need the 2003 version, which is
probably installed with the OS since it's older.
Also, if I remember correctly, if you installed Python 2.6 "for all users" then it will have installed the vcredist DLLs in a way that wxPython can also access them (as a system side-by-side assembly.)
You have two options: ship the 2008 version of vcredist_x86.exe with
your application, or just install the needed DLL's with your
application (e.g. msvcr90.dll, msvcp90.dll) in the same folder as your
py2exe generated exe. You'll also need to add a private assembly
manifest: Create projects easily with private MFC, ATL and CRT assemblies- CodeProject