FS#41255 - [pssh] fails with Python 3

Attached to Project: Community Packages
Opened by Javier Ruere (jruere) - Friday, 18 July 2014, 18:06 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Monday, 18 January 2016, 17:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
pssh fails with Python 3, it needs Python 2.

To run it I had to use:

PYTHONPATH=/usr/lib/python3.4/site-packages python2 `which pssh`

Additional info:
* Using version 2.3.1-5 on an updated system.
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Monday, 18 January 2016, 17:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixing patch added in pssh 2.3.1-7
Comment by Dave Reisner (falconindy) - Friday, 18 July 2014, 18:28 GMT
> pssh fails with Python 3
But *how* does it fail? Upstream states that they support python>=3.1, and the PKGBUILD is written to work with python3.

also: obligatory "works for me"
Comment by Javier Ruere (jruere) - Saturday, 19 July 2014, 05:14 GMT
Good point.

Though not shown, the error comes after inserting a correct password.

pts/3$ pssh -h hosts -l user -A ls
Warning: do not enter your password if anyone else has superuser
privileges or access to your account.
Password:
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/askpass_server.py", line 72, in handle_write
bytes_written = conn.send(buffer)
TypeError: 'str' does not support the buffer interface
Comment by Dave Reisner (falconindy) - Saturday, 19 July 2014, 14:46 GMT Comment by Javier Ruere (jruere) - Saturday, 19 July 2014, 19:48 GMT
Thanks for finding the upstream report.

So now we wait for a new release, right?
Comment by Jaroslav Lichtblau (Dragonlord) - Sunday, 17 January 2016, 11:14 GMT
Fixing patch added in pssh 2.3.1-7

Loading...