Hello, Everyone. I have a problem when using Pexpect module.

dachuan hdc1112 at gmail.com
Fri Nov 5 07:46:37 CET 2010

hi, everyone.
When I use Pexpect Module, I met the following problem and don't know how to
handle it.
Any advice is appreciated !

My environment:
Linux node08_xen3.4.3_rhel5_1 #1 SMP Wed Jul 14 17:20:01 CST
2010 i686 i686 i386 GNU/Linux  (FYI: this is a virtual machine.)
Python 2.5.5

and by the way, I have installed pexpect in another machine, and it works
pretty well, its environment is:
Linux WEB1 2.6.9-42.ELlargesmp #1 SMP Wed Jul 12 23:46:39 EDT 2006 x86_64
x86_64 x86_64 GNU/Linux
Python 2.5.5

-bash-3.1$ ./ssh_mutual_trust.py -n
Traceback (most recent call last):
  File "./ssh_mutual_trust.py", line 427, in <module>
  File "./ssh_mutual_trust.py", line 405, in start
  File "./ssh_mutual_trust.py", line 137, in sshkeygen
    keygen_child = pexpect.spawn(new_keygen_cmd)
  File "/usr/local/lib/python2.5/site-packages/pexpect.py", line 430, in
    self._spawn (command, args)
  File "/usr/local/lib/python2.5/site-packages/pexpect.py", line 530, in
    raise ExceptionPexpect('Error! pty.fork() failed: ' + str(e))
pexpect.ExceptionPexpect: Error! pty.fork() failed: out of pty devices

Dachuan Huang, Graduate Candidate
Cluster and Grid Computing Lab
Services Computing Technology and System Lab
Huazhong University of Science and Technology
Wuhan, 430074, China
Tel: +86-15902733227

Email: hdc1112 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101105/18b3372a/attachment.html>

More information about the Python-list mailing list