Hi,
I'm trying to distribute a script that uses winpexpect and plink
(Windows CLI based SSH client) to configure network devices. All
Python to EXE scripts I've tried has failed me: cx_freeze, py2exe and
pyinstaller.
Example file that fails:
import winpexpect
winpexpect.winspawn('plink.exe')
Error message when trying to run the binary executable on another
computer than the one I compiled it on:
PS C:\> .\testwinpexpect.exe
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py",
line 27, in <module>
exec code in m.__dict__
File "testwinpexpect.py", line 5, in <module>
File "C:\Python27\lib\site-packages\winpexpect-1.5-py2.7.egg\winpexpect.py",
line 346, in __init__
logfile=logfile, cwd=cwd, env=env)
File "C:\Python27\lib\site-packages\winpexpect-1.5-py2.7.egg\pexpect.py",
line 429, in __init__
self._spawn (command, args)
File "C:\Python27\lib\site-packages\winpexpect-1.5-py2.7.egg\winpexpect.py",
line 401, in _spawn
CREATE_NEW_CONSOLE, self.env, self.cwd,
pywintypes.error: (2, 'CreateProcess', 'The system cannot find the
file specified.')
I would greatly appreciate some input, my script relies on a large
number of third party libraries that makes installing everything a
hassle for ordinary users. Other executables that doesn't use the
winpexpect module runs perfectly!
--
Med vänliga hälsningar / Kind regards,
William
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users