用pyins打包winpexpect

2024-05-16 06:32:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用pyinstaller创建一个非常基本的可执行文件,但是当我运行它时,winpexpect(pexpect的windows版本)抛出了一个相当不可破解的错误。我只能推断出在使用winspawn类时会发生错误。在

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的见解吗?它甚至不让我知道它找不到哪个文件。在


Tags: inbuildlineuserspyzfileprogrammingdropbox