Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when using Input script #101

Open
GoogleCodeExporter opened this issue Nov 22, 2015 · 0 comments
Open

TypeError when using Input script #101

GoogleCodeExporter opened this issue Nov 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 Jun 2015 at 3:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant