[wxPython-users] Re: gdiplus.dll required
Geoff Skerrett
Geoff at teammsa.com
Thu Nov 16 06:10:34 PST 2006
-----Original Message-----
From: news [mailto:news at sea.gmane.org] On Behalf Of Thomas Heller
Sent: Thursday, November 16, 2006 9:20 AM
To: wxpython-users at lists.wxwidgets.org
Subject: [wxPython-users] Re: gdiplus.dll required
Robin Dunn schrieb:
> Peter Damoc wrote:
>> There is an extra requirement while trying to pack an app with py2exe
>> and the latest wxPython 2.7.2.0:
>> gdiplus.dll
>> I've found the dll, placed it in Python's directory and there are no
>> more errors BUT this didn't happened before 2.6 series...
>
> The GDIPlus requirement is new with 2.7. It's used by the
> GraphicsContext classes.
>
>> and I thought
>> maybe it is a small bug.
>
> According to the GDIPlus docs the DLL is included with Windows XP and
> later, and that applications should only install it on earlier
systems.
> Was your problem due to it not being already installed on your
> machine, and not installed by wxPython, or that py2exe didn't include
> it the bundle for your app?
>
Building the py2exe 'advanced' sample (which contains a trivial wx
program)
raises this error (XP SP2, Python 2.5, py2exe CVS version, wxPython
2.7.2 ansi):
c:\sf\py2exe\py2exe\samples\advanced>py25 setup.py py2exe
running py2exe
.....
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'win32trace'
creating python loader for extension 'win32evtlog'
creating python loader for extension 'servicemanager'
creating python loader for extension 'win32event'
creating python loader for extension 'wx._misc_'
creating python loader for extension 'perfmon'
creating python loader for extension 'win32service'
creating python loader for extension 'win32api'
creating python loader for extension 'win32ui'
creating python loader for extension '_win32sysloader'
creating python loader for extension 'unicodedata'
creating python loader for extension 'wx._windows_'
creating python loader for extension 'wx._core_'
creating python loader for extension 'wx._gdi_'
creating python loader for extension 'wx._controls_'
creating python loader for extension 'bz2'
*** finding dlls needed ***
error: gdiplus.dll: No such file or directory
This is probably what the OP had seen.
py2exe parses the import table of the dlls and pyds it find and tries
recursively to find the dlls needed. Using the default Windows dll
search
path, IIRC. Apparently it does not find gdiplus.dll (which may be a bug
in py2exe).
When I run dependencywalker on wxmsw272h_core_vc.dll, dependencywalker
does find gdiplus.dll (but I do not know how, actually). gdiplus is in
these
directories on my system:
c:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.0.0
_x-ww_8d353f13\GdiPlus.dll
c:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.260
0.2180_x-ww_522f9f82\GdiPlus.dll
What does the wxPython installer do? Shouldn't it install gdiplus.dll,
since it is
required by wxPython, install the dll in the c:\Python25 directory? Or
does it only
do this on pre-XP systems? I guess that py2exe would have found it
there.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
More information about the wxpython-users
mailing list