2014-01-29 3 views
2

처음 stackoverflow를 사용하므로 쉽게 이동하십시오. 이전의 컴퓨터에서 py2exe를 사용하기 전에 정상적으로 작동했습니다. 불행히도 내 새로운 하나 exe를 사용하려고 할 때. 파일이 작동하지 않습니다. .py 파일을 변환하려고 할 때 이러한 오류가 발생합니다.py2exe - "다음 모듈이 누락 된 것처럼 보입니다."

from distutils.core import setup 
import py2exe 

setup(windows=['Test.py']) 

내 Test.py가 EXE로 변환 할 평

내 설정.

def Test(): 
    print 'TEST' 
    Test() 

오류가 나는 나타날 수

The following modules appear to be missing 

['IronPythonConsole', 'System', 'System.Windows.Forms.Clipboard', '_scproxy', 'c 
lr', 'console', 'modes.editingmodes', 'pyreadline.keysyms.make_KeyPress', 'pyrea 
dline.keysyms.make_KeyPress_from_keydescr', 'pyreadline.keysyms.make_keyinfo', ' 
pyreadline.keysyms.make_keysym', 'startup'] 

*** binary dependencies *** 
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 
    SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll 
    KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll 
    ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll 
    WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll 
    GDI32.dll - C:\WINDOWS\system32\GDI32.dll 
    VERSION.dll - C:\WINDOWS\system32\VERSION.dll 
    ole32.dll - C:\WINDOWS\system32\ole32.dll 

어떤 아이디어? 나는 그 문제에 대한 답을 찾는 것 같지 않기 때문에 온라인으로 보는 것을 포기했습니다. 나는 약간 도움을 위해 아주 고맙게 여길 것입니다.

+0

난 그냥 같은 코드를 실행, 그것은 누락 된 모듈 오류를 포기하지 않았다. 무엇 py2exe를 다시 설치하려고합니다. – TheCreator232

답변

0

저는 콘솔 응용 프로그램의 콘솔 옵션 대신 창 옵션을 사용하고 있다고 생각합니다. py2exe 관련 추가 문제는 Link을 참조하십시오. 에 .exe를 구축하기

사용이 코드 :

from distutils.core import setup 
import py2exe 

setup(console=['Test.py']) 
+0

똑같은 오류를 출력하지만, Test.exe를 클릭하면 팝업됩니다. –

+1

@Alex : 콘솔에서 프로그램을 실행하십시오. 이 응용 프로그램의 GUI가 없으므로 열리고 닫힙니다. 하지만 콘솔에서 실행하면 'TEST'가 인쇄됩니다. – TheCreator232

관련 문제