unix1986 / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

TypeError when using Input script #101

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run PSSH with -I < script.sh
2. See error

What is the expected output? What do you see instead?
Expect it to run the script provided. Instead it stops with a traceback.

Traceback (most recent call last):
  File "/usr/bin/pssh", line 118, in <module>
    do_pssh(hosts, cmdline, opts)
  File "/usr/bin/pssh", line 89, in do_pssh
    statuses = manager.run()
  File "/usr/lib/python3.4/site-packages/psshlib/manager.py", line 74, in run
    self.iomap.poll(wait)
  File "/usr/lib/python3.4/site-packages/psshlib/manager.py", line 255, in poll
    handler(fd, self)
  File "/usr/lib/python3.4/site-packages/psshlib/task.py", line 170, in handle_stdin
    self.byteswritten = start + os.write(fd, chunk)
TypeError: 'str' does not support the buffer interface

What version of the product are you using? On what operating system?
PSSH 2.3.1
Python 3.4.3
Arch Linux

Please provide any additional information below.
Works fine on a CentOS host where Python2 is the default.

Original issue reported on code.google.com by austinab...@gmail.com on 28 Jun 2015 at 3:23