From: Umesh S. <ush...@gm...> - 2011-06-10 13:11:31
|
hi, i am getting following message during converting my python script into executable file . i copy all the following dll files in dist directory but by this also the executable can't run rightly in my setup.py i include these dlls ########## # setup.py from distutils.core import setup import py2exe setup(console=['p1.py'], options = { "py2exe":{"dll_excludes":["C:\Python27\Lib\site-packages\pythonwin\mfc90.dll","C:\WINDOWS\system32\ole.dll","C:\WINDOWS\system32oleaut32.dll","C:\WINDOWS\system32\user32.dll","C:\WINDOWS\system32\powrprof.dll","C:\WINDOWS\system32\shell32.dll", "C:\WINDOWS\system32\wsock32.dll","C:\WINDOWS\system32\advapi32.dll","C:\WINDOWS\system32\winspool.drv", "C:\WINDOWS\system32\gdi32.dll","C:\WINDOWS\system32\version.dll","C:\WINDOWS\system32\kernel32.dll","C:\Python27\Lib\site-packages\pythonwin\mfc90.dll"]}}) ########## but after this also the exe is not working properly the console just appear and again close after very short time Your executable(s) also depend on these dlls which are not included, you may or may not need to distribute them. Make sure you have the license if you distribute any of them, and make sure you don't distribute files belonging to the operating system. OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll USER32.dll - C:\WINDOWS\system32\USER32.dll POWRPROF.dll - C:\WINDOWS\system32\POWRPROF.dll SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll ole32.dll - C:\WINDOWS\system32\ole32.dll WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll mfc90.dll - C:\Python27\lib\site-packages\Pythonwin\mfc90.dll WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV GDI32.dll - C:\WINDOWS\system32\GDI32.dll VERSION.dll - C:\WINDOWS\system32\VERSION.dll KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll Can anyone tell me how to include these dll Thanks Umesh Kumar |