Hi,
Newbie to py2exe here; I'm trying to port a project that uses py2exe from WinXP/Python 2.5 to Win7(32bit)/Python 2.6. I'm getting an error trying to
import this file (appears to be a .pyd file), the message as follows:

  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 1021, in find_dependend_dlls
    import py2exe_util
ImportError: DLL load failed: %1 is not a valid Win32 application.

I just installed py2exe this morning. I even tried renaming py2exe_util.pyd and copying over the (working) version I found on my WinXP system in site_packages, but that led to a different error:

  File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 1021, in find_dependend_dlls
    import py2exe_util
ImportError: DLL load failed: The specified module could not be found.

Anyway, anyone have any idea what's causing this? Is py2exe supposed to work on Win7(32) and with Python 2.6?
Suggestions appreciated.
Ken