- 论坛徽章:
- 0
|
楼主问下,在Windows平台,为什么我的FTP也不行呢?
-------确定Win PC上安装了winpexpect
import os,winpexpect
child=winpexpect.winspawn('ftp 172.29.132.234')
错误信息是:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
child=winpexpect.winspawn('ftp 172.29.132.234')
File "C:\Python26\lib\site-packages\winpexpect-1.5-py2.6.egg\winpexpect.py", line 346, in __init__
logfile=logfile, cwd=cwd, env=env)
File "C:\Python26\lib\site-packages\winpexpect-1.5-py2.6.egg\pexpect.py", line 429, in __init__
self._spawn (command, args)
File "C:\Python26\lib\site-packages\winpexpect-1.5-py2.6.egg\winpexpect.py", line 423, in _spawn
raise ExceptionPexpect, m
ExceptionPexpect: Child did not start up correctly. (5, 'CreateProcess', 'Access is denied.') |
|