geoff cnuaxabh2561gmailcom script runs fine command line run setuppy script try execute exe crashes cant import first module setup script looks something like distutilscore import setup import py2exe import sys lensysargv 1 sysargvappendpy2exe setupconsole scriptmyprogrampy dest_base myprogram_test icon_resources0myprogramico name myprogram_test zipfile none options py2exe ignores mxdatetime wxbitmapfromimage compressed 1 dll_excludes w9xpopenexe bundle_files 3 contents myprogrampy look like import sys import os myobjs import objects mobj app mobjmyapplication appmainloop myobjs directory __init__py empty run myprogrampy command line every thing works fine run exe myprogramexe always fails first import statement myobjsobjects module regardless module position ie traceback first module fail statement import traceback checked buildbdistwin32winexecollect25 directory module failed import attempt occurred copied directory change setup script zipfile myprogramzip generated open file using winzip see pyc file inside ie tracebackpyc file zip reason myprogram runs exe doesnt seem able import modules executable zip file work around define myprogrampy module used submodule exe works fine however becomes maintenance headache future version appears module lookup mechanism generated exe somehow gets mangled exe spent several hour building test environment try reproduce behaviour unfortunately simplified test py works perfectly py exe know problem code havent got clue start looking help assistance tips would greatly appreciated g sfnet email sponsored microsoft defy challenges microsoftr visual studio 2008 httpclkatdmtcommrtgovse0120000070mrtdirect01 _______________________________________________ py2exeusers mailing list zi9rpyfcecqlistssourceforgenet httpslistssourceforgenetlistslistinfopy2exeusers wed 06 aug 2008 065211 0400 py2exeusers imports failing