Visual studio 2008 and freeze

Hello to everybody.

I have been involved with wxWidgets in the past, but this is my first post to this list.

I have a Windows-specific question about frozen python applications that use wxPython. I am using wxPython 2.8.8.1, Python 2.5.2 on Win2k8 Server.

I have written a small test app that only creates and shows a wx.Frame. When I launch it through the installed python interpreter it works just fine. But when I freeze the app using compiled by me python25.dll and .lib using VS2008 I get a crash in _gdi_.pyd.

Can this be a matter related to the runtime library incompatibility? Has anybody else ever used wxPython from within frozen apps?

I am wondering what I have to do to solve the problem. Should I recompile wxPython and wxWidgets myself using VS2008, too?

Thank you very much!

Kindest regards,
Tsolakos Stavros

Hello again.

I have a Windows-specific question about frozen python applications that use wxPython. I am using wxPython 2.8.8.1, Python 2.5.2 on Win2k8 Server.

I have written a small test app that only creates and shows a wx.Frame. When I launch it through the installed python interpreter it works just fine. But when I freeze the app using compiled by me python25.dll and .lib using VS2008 I get a crash in _gdi_.pyd.

Can this be a matter related to the runtime library incompatibility? Has anybody else ever used wxPython from within frozen apps?

I am wondering what I have to do to solve the problem. Should I recompile wxPython and wxWidgets myself using VS2008, too?

I have found an old machine with MSVC7.1 and compiled python and the frozen executable. Unfortunately the same problems. :frowning:

Is there anything special that I should take care of when using wxPython from a frozen script?

Regards,
Stavros

Tsolakos Stavros wrote:

Hello again.

I have a Windows-specific question about frozen python applications that use wxPython. I am using wxPython 2.8.8.1, Python 2.5.2 on Win2k8 Server.

I have written a small test app that only creates and shows a wx.Frame. When I launch it through the installed python interpreter it works just fine. But when I freeze the app using compiled by me python25.dll and .lib using VS2008 I get a crash in _gdi_.pyd.

Can this be a matter related to the runtime library incompatibility? Has anybody else ever used wxPython from within frozen apps?

I am wondering what I have to do to solve the problem. Should I recompile wxPython and wxWidgets myself using VS2008, too?

I have found an old machine with MSVC7.1 and compiled python and the frozen executable. Unfortunately the same problems. :frowning:

Is there anything special that I should take care of when using wxPython from a frozen script?

Regards,
Stavros

Why are you compiling Python yourself? It's already compiled in multiple versions for Windows on www.python.org.

I don't use VS2003 or 2008 to compile my applications. I use py2exe through GUI2Exe. Here's a couple of links:

http://code.google.com/p/gui2exe/source/detail?r=2
http://www.py2exe.org/

Or there's a whole list of other python freeze utils here: Packaging_a_python_program · Wiki · meta / about · GitLab

···

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

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

Hi Mike.

Why are you compiling Python yourself? It's already compiled in multiple versions for Windows on www.python.org.

I don't use VS2003 or 2008 to compile my applications. I use py2exe through GUI2Exe. Here's a couple of links:

Google Code Archive - Long-term storage for Google Code Project Hosting.
http://www.py2exe.org/

Or there's a whole list of other python freeze utils here: Packaging_a_python_program · Wiki · meta / about · GitLab

Thank you very much for the links. I have found py2exe really good. Actually, the last time I used freeze for building python executables was in late 2000 and I thought it was still the preferred way.

Thanks again,

Stavros