[Py2exe-users] Re: [pygtk] py2exe...
John Pye
john.pye at student.unsw.edu.au
Thu Apr 6 15:12:05 WST 2006
I have seen that technique with the Inkscape project: copy a whole bunch
of DLLs off the c:\GTK\bin directory into the bundled fileset. But I
don't see it being used (manually) in the BitTorrent sources.
I think that py2exe is managing find and copy the required DLLs
(automatically). After my py2exe runs, I have the following in my dist
directory:
john at JOHN /g/pygtkexample/dist
$ ls
_cairo.pyd gobject.pyd intl.dll
libgdk-win32-2.0-0.dll libgobject-2.0-0.dll
libpangowin32-1.0-0.dll pango.pyd xmlparse.dll
_gtk.pyd helloworld.exe libatk-1.0-0.dll
libgdk_pixbuf-2.0-0.dll libgthread-2.0-0.dll
libpng13.dll pangocairo.pyd xmltok.dll
atk.pyd helloworld.exe.log libcairo-2.dll
libglade-2.0-0.dll libgtk-win32-2.0-0.dll
library.zip python24.dll zlib.pyd
bz2.pyd helloworld.glade libfontconfig-1.dll
libglib-2.0-0.dll libpango-1.0-0.dll
libxml2.dll unicodedata.pyd zlib1.dll
glade.pyd iconv.dll libfreetype-6.dll
libgmodule-2.0-0.dll libpangocairo-1.0-0.dll
msvcr71.dll w9xpopen.exe
I think the error message suggests there is something else than simply
missing files here though, don't you think?
The example which I attached really is minimal... I'm puzzled...
Cheers
JP
Sreeram Kandallu wrote:
> BitTorrent uses PyGTK and py2exe. IIRC, when building the distribution,
> they manually copy a whole bunch of GKT/Pango data files. Its probably
> required for bundling PyGTK apps.
> You might want to check out the BitTorrent source code to see what
> exactly it does.
> http://download.bittorrent.com/dl/BitTorrent-4.4.0.tar.gz
>
> Regards
> Sreeram
>
> John Pye wrote:
>
>> Hi Michael
>>
>> That helped a bit but I still get a crash with the py2exe'd version. See
>> attached revised attempt. I get this error message:
>>
>>
>>
>> I don't get the error when I run directly with python, so it's something
>> that py2exe is doing...
>>
>> Files attached (remove .txt suffix to try them out)
>>
>> Cheers
>> JP
>>
>> Michael Urban wrote:
>>
>>> Remove the pygtk.require('2.0') statement. Should fix the problem.
>>>
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2 9385 5127
f +61 2 9663 1222
mailto:john.pye_AT_student_DOT_unsw.edu.au
http://pye.dyndns.org/
More information about the pygtk
mailing list