gui2exe xp manifest problem

I am using python2.6 and py2exe 0.6.9:
By checking 'xp manifest file' option in gui2exe leads to my exe not
working at all. Without checking this, everything works fine but, I do
not have xp themed gui.

Any hints?

Regards,

···

--
Dejan

Hello,

···

On Jan 23, 2009, at 9:53 PM, Dejan Todorovic wrote:

I am using python2.6 and py2exe 0.6.9:
By checking 'xp manifest file' option in gui2exe leads to my exe not
working at all. Without checking this, everything works fine but, I do
not have xp themed gui.

Any hints?

http://groups.google.com/group/gui2exe

Hi Dejan

I am using python2.6 and py2exe 0.6.9:
By checking 'xp manifest file' option in gui2exe leads to my exe not
working at all. Without checking this, everything works fine but, I do
not have xp themed gui.

Any hints?

Unfortunately I don't have Python 2.6 so I am not sure where the
problem is. Have you tried compiling an app with py2exe alone (without
GUI2Exe)? If it works, have you done anything different from what you
did with previous versions of Python?

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Sat, Jan 24, 2009 at 3:53 AM, Dejan Todorovic wrote:

Hi Andrea,

The main problem is coming from the Python side. Python 2.6 and 3 are now
compiled with VS2008 on the win platform. The rules of the game by using
VS2008 have changed (assemblies, manifest files, SxS, …).

It seems that a lot of people, numpy, py2exe, and generally 3rd parties developers
(Robin too!) are suffering.

Jean-Michel Fauth, Switzerland.

···

2009/1/24 Andrea Gavana andrea.gavana@gmail.com

Hi Dejan

On Sat, Jan 24, 2009 at 3:53 AM, Dejan Todorovic wrote:

I am using python2.6 and py2exe 0.6.9:

By checking ‘xp manifest file’ option in gui2exe leads to my exe not

working at all. Without checking this, everything works fine but, I do

not have xp themed gui.

Any hints?

Unfortunately I don’t have Python 2.6 so I am not sure where the

problem is. Have you tried compiling an app with py2exe alone (without

GUI2Exe)? If it works, have you done anything different from what you

did with previous versions of Python?

Andrea.

it is the py2exe problem actually, seems that it is striping manfiest
from the exe file.

i just found this:
http://osdir.com/ml/python.py2exe/2008-08/msg00010.html

but, can't find the patched file. :frowning:

···

--
Dejan

This thread is a bit old, but I have the same problem. I have added a “manifest string” (as suggested here and here) in my setup.py and also tried the GUI2EXE program, but both result in the same result when executing the exe file: (approximate translation)

“This application was not initialized because the following dll is missing: msvcr90.dll. The reinstallation might fix this problem.”

Then I downloaded the missing dll, put it besides the file and now the program gives a seemingly random error:

“Application not initialized correctly”.

I have attached my setup.py and the original .py file runs with no problems.

Also, trying to “skip_archive=1” to not create the zip file raises a “Permission Denied” over the final .exe file, but that doesn’t bother me much.

Has anyone succesfully created a .exe program that runs with the XP Theme? How? What am I doing wrong?

setup.py (997 Bytes)

Hi Lucas,

it seems that, at the moment, simplest solution should be just using
python v2.5 for building your exe.

Regards,

···

--
Dejan

It’s me again. The problem seems to lie on my py2exe installation because even the GUI examples in the “samples” folder doesn’t work.
I tried to build my own py2exe, avoiding installers, but running “python setup.py build” raises an weird error:
“error: package directory ‘py2exe’ does not exist”,
but a simple dir command proves the folder existence:
15/11/2008 22:39 5.072 ANNOUNCE
29/01/2009 13:46 docs
16/06/2008 15:20 250 MANIFEST.in
15/11/2008 22:43 524 PKG-INFO
29/01/2009 13:47 py2exe
16/06/2008 15:20 194 py2exe_postinstall.py
16/06/2008 15:20 2.059 README.txt
09/11/2008 23:32 19.627 setup.py
29/01/2009 13:46 source
29/01/2009 13:46 test
29/01/2009 13:46 14.659 uac.patch
16/06/2008 15:20 4.242 zipextimporter.py

Am I missing something again? Maybe the setup referred to another required “py2exe” directory? Or I shouldn’t even trying to build this script… Damn windows, everything worked so nicely at linux…

I installed python 2.5 + wxPython + py2exe and… It worked like a charm. Thank you very much. But knowing the reason would also help me. If it’s something serious, I will stop using the 2.6 version right now.

Lucas Boppre Niehues wrote:

I installed python 2.5 + wxPython + py2exe and... It worked like a charm. Thank you very much. But knowing the reason would also help me. If it's something serious, I will stop using the 2.6 version right now.

The problem is the new way that Python 2.6 is built on Windows. It's using the new Visual Studio 2008 compiler instead of the old VS2003. As I understand it, this requires extra stuff to be installed, such as side-by-side (SxS) assemblies in addition to the python (and wxpython?) dll. If you do some searching in the archives, on c.l.py and the py2exe group, you'll notice that others are having the same issues.

I think it's possible to do this, but you need to be sure to include ALL requirements...unfortunately, I have yet to see a complete list of what's required, let alone how to use it in py2exe. It's probable that I just missed it though since I don't follow the py2exe group very closely...

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

Hi All,

Lucas Boppre Niehues wrote:

I installed python 2.5 + wxPython + py2exe and... It worked like a charm.
Thank you very much. But knowing the reason would also help me. If it's
something serious, I will stop using the 2.6 version right now.

The problem is the new way that Python 2.6 is built on Windows. It's using
the new Visual Studio 2008 compiler instead of the old VS2003. As I
understand it, this requires extra stuff to be installed, such as
side-by-side (SxS) assemblies in addition to the python (and wxpython?) dll.
If you do some searching in the archives, on c.l.py and the py2exe group,
you'll notice that others are having the same issues.

I think it's possible to do this, but you need to be sure to include ALL
requirements...unfortunately, I have yet to see a complete list of what's
required, let alone how to use it in py2exe. It's probable that I just
missed it though since I don't follow the py2exe group very closely...

I don't think it is an issue of py2exe (or GUI2Exe itself). As Mike
stated, for the time being we should just use Python 2.5, at least
until a solution of this problem can be found. Once it is found, I'll
just implement a switch in GUI2Exe to handle this case. I don't really
see what all the fuss about Python 2.6 is, I can't honestly think of
any new feature in Python 2.6 so extraordinarily exciting to make me
even think about switching from 2.5. FWIW, some of the so called
"features" in Python 2.6 and (more on it) 3.0 are just a step backward
IMHO.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Thu, Jan 29, 2009 at 6:57 PM, Mike Driscoll wrote: