python - py2exe can't find .py -



python - py2exe can't find .py -

sorry if stupid question, how py2exe find module wish convert? maintain getting error:

c:\python27\lib\distutils\dist.py:267: userwarning: unknown distribution option: 'dist_dir' warnings.warn(msg) running py2exe creating c:\users\david\workspace\setup\src\dist *** searching required modules *** error: pygame.py: no such file or directory

i looked many pygame .exe tutorials or problems others have had, problem seemed occur after created .exe file... can't create one. used exact same code 1 found on http://pygame.org/wiki/pygame2exe except changed:

class buildeexe: def __init__(self): #name of starting .py self.script = "myapps.py"

into

class buildexe: def __init__(self): #name of starting .py self.script = "pygame.py"

my pygame.py exists in "c:\users\"username"\workspace\pygame\src". please help.

you can seek putting in .py file:

from distutils.core import setup import py2exe setup(console=['hello.py'])

such how in this tutorial. have oppen cmd.exe , cd "c:\users\"username"\workspace\pygame\src" , type:

python setup.py py2exe

or can changed setup.py whatever .py file saved above code in. (within same directory gave)

python pygame converter py2exe

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -