text: ,
  If you are still experiencing these problems, try literally interpreting the
  error message. If you installed py2exe from the official website link which
  takes you to source forge you are offered the 64bit version by default.
  The only dll, py2exe_util will then result in an error when you try and import
  it.
  Hope this helps, if not already solved.
  Merry Christmas :)
  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
  Ken,
  py2ese works fine on win7 with Python 2.6. I am using it nearly daily
  in that configuration.
  > 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.
  please make totally sure you have cleared your projects build directory.
  Next thing: That looks as if something is tried to be loaded as a DLL,
  which is none. Could it be that there is some proken py2exe_util.pyd
  somewhere in your path?
  please start up a python-shell and try to import py2exe_util
  (it should be a 13.312 byte .pyd in your site-packages directory)
  Best wishes,
  Harald
  --
  GHUM GmbH
  Harald Armin Massa
  Spielberger Straße 49
  70435 Stuttgart
  0173/9409607
  Amtsgericht Stuttgart, HRB 734971
  -
  persuadere.
  et programmare
  I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details