Re: py2exe 0.6.1 released
First: Thank you Thomas for the good work with py2exe. The single-file option is something I have been waiting for :-) Will it also be possible to build independent files (such as my_app_data.zip) into the executable? > > I tried it using the wx singlefile example, but unfortunately the resulting > > executable segfaults at startup (using Python 2.3.3 on Windows 2000, with > > latest wxWindows). > > Yes, I can reproduce that. I'm still using wxPython 2.4.2.4 for Python > 2.3.5, and that combo works. I have done a few tests, and wxPython > 2.5.1.5 also works, while 2.5.5.1 crashes. > I have tried two more combinations for this example (samples/singlefile/gui/test_wx.py), both giving segfault on WindowsXP / SP2: 1. Python 2.3.3 with wxPython 2.6.1.0 unicode 2. Python 2.4.1 with wxPython 2.6.1.0 unicode However, the combinations Python 2.4.1 with wxPython 2.4.5.1 ansi Python 2.4.1 with wxPython 2.6.1.0 ansi do not cause segfault, but shows a dialog box pointing to a log file, the contents of which is: Traceback (most recent call last): File "test_wx.py", line 1, in ? File "zipextimporter.pyo", line 78, in load_module File "wxPython\__init__.pyo", line 10, in ? File "zipextimporter.pyo", line 78, in load_module File "wxPython\_wx.pyo", line 3, in ? File "zipextimporter.pyo", line 78, in load_module File "wxPython\_core.pyo", line 15, in ? File "zipextimporter.pyo", line 78, in load_module File "wx\__init__.pyo", line 42, in ? File "zipextimporter.pyo", line 78, in load_module File "wx\_core.pyo", line 4, in ? File "zipextimporter.pyo", line 89, in load_module ImportError: MemoryLoadLibrary failed loading _core_.pyd Maybe this could help localizing the problem? Svein Brekke -- http://mail.python.org/mailman/listinfo/python-list
Re: py2exe 0.6.1 released
>> However, the combinations >> Python 2.4.1 with wxPython 2.4.5.1 ansi >> ... > > You probably mean 2.5.5.1 ? It was 2.5.4.1 (an arbitrary choice of an old version, just to check if a recent wxPython change was the cause ). Svein -- http://mail.python.org/mailman/listinfo/python-list
Re: Display of JPEG images from Python
You can f.i. use wxPython (www.wxPython.org). Here is a compact and ugly, but (almost) minimal, example of a python script that shows an image file: import wx a = wx.PySimpleApp() wximg = wx.Image('img.jpg',wx.BITMAP_TYPE_JPEG) wxbmp=wximg.ConvertToBitmap() f = wx.Frame(None, -1, "Show JPEG demo") f.SetSize( wxbmp.GetSize() ) wx.StaticBitmap(f,-1,wxbmp,(0,0)) f.Show(True) def callback(evt,a=a,f=f): # Closes the window upon any keypress f.Close() a.ExitMainLoop() wx.EVT_CHAR(f,callback) a.MainLoop() -svein -- http://mail.python.org/mailman/listinfo/python-list
Re: Python on Windows
> I would love a single .exe file that would run without ANY OTHER FILES > even if it was 50 Mb! You should look at pyinstaller (http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi), as far as I know the only py->exe compiler that makes single file executables for windows. You may even bundle additional files as well, such as images. Note: The 1.0 release makes exe's that depend on msvcrt71.dll (which does not exist under win2000 and win9x). To make a universal windows executable, you must check out the latest version from svn, or download my temporary zip-file at http://home.no.net/~sbrekke/SlideShowTest/pyinstaller.zip . You may also try my sample slide-show executable http://home.no.net/~sbrekke/SlideShowTest/show.exe (use the arrow-buttons to navigate. It was made from the python file http://home.no.net/~sbrekke/SlideShowTest/show.py with the compilation script http://home.no.net/~sbrekke/SlideShowTest/build.py). -svein -- http://mail.python.org/mailman/listinfo/python-list