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
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
|
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
Monday, 18 January 2016, 17:44 GMT
Reason for closing: Fixed
Additional comments about closing: Fixing patch added in pssh 2.3.1-7
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"
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
So now we wait for a new release, right?