From: Mark H. <ski...@gm...> - 2009-06-07 11:35:37
|
try the instructions at http://www.py2exe.org/index.cgi/WinShell - but change 'shell' to 'directsound' Cheers, Mark Pluch' wrote: > Hello, > > I am new to py2exe and I try to port my scripts from linux to windows! I have this little script test.py who works fine when I launch python.exe test.py > > #! /usr/bin/env python > # -*- coding: utf-8 -*- > > import win32com.directsound.directsound as ds > > list = ds.DirectSoundCaptureEnumerate() > for card in list: > print card > > ###### end > > but I can't manage to make en .exe with py2exe. > Here is the setup.py > > from distutils.core import setup > import py2exe > setup( > name = 'test', > version = '0.01', > console = [ > { > 'script': 'test.py', > } > ], > > options = { > 'py2exe': { > 'includes':'win32com', > } > }, > ) > > and the Error Message is : > The following modules appear to be missing > > ['_thread', 'email.Generator', 'email.Iterators', 'email.Utils', 'gdk', 'ltihook > s', 'netscape', 'win32com.axcontrol', 'win32com.axscript', 'win32com.axscript.cl > ient', 'win32com.directsound.directsound', 'win32com.gen_py', 'win32com.shell', > 'win32com.shell.shell', 'win32com.shell.shellcon', 'win32com.test.Generated4Test > .msword8', 'xl5en32'] > > I tried to use the line : 'includes':'win32com.directsound.directsound', > but I get the same error. > Well, what is the way to make working my script! (I use XP and python2.5 and pywin32-213). > > Thanks for any help! > > Pluch > > > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |