2013-09-24 86 views
1

我试图用pyinstaller创建一个非常基本的可执行文件,但是当我运行它winpexpect(一个窗口版本的pexpect)抛出一个相当难以辨认的错误。我真的只能推断出使用winspawn类时发生错误。pyinstaller包装winpexpect

C:\Users\Dan\Dropbox\Programming\Python\MC\ServerSense>ServerSense.exe 
Traceback (most recent call last): 
    File "<string>", line 170, in <module> 
    File "<string>", line 52, in __init__ 
    File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle 
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\winpexpect", line 346, in __in 
it__ 
    File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle 
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\pexpect", line 429, in __init_ 
_ 
    File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle 
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\winpexpect", line 401, in _spa 
wn 
pywintypes.error: (2, 'CreateProcess', 'The system cannot find the file specifie 
d.') 

任何人都可以提供一些见解,我会怎么去与pyinstaller打包winpexpect?它甚至不会让我知道它无法找到哪个文件。

回答