Bug 1822306 - psshlib/manager.py:359: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode
Summary: psshlib/manager.py:359: RuntimeWarning: line buffering (buffering=1) isn't su...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pssh
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-08 17:13 UTC by John Ellson
Modified: 2020-04-25 02:21 UTC (History)
3 users (show)

Fixed In Version: pssh-2.3.1-28.fc30 pssh-2.3.1-28.fc31 pssh-2.3.1-28.fc32
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-22 22:55:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Ellson 2020-04-08 17:13:39 UTC
Description of problem:
Some API change in python3.8 is causing multiple python scripts to issue warnings like pssh's:

 /usr/lib/python3.8/site-packages/psshlib/manager.py:359: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  dest = self.files[filename] = open(
    
   

Version-Release number of selected component (if applicable):
pssh-2.3.1-27.fc32.noarch
python3-3.8.2-2.fc32.x86_64

How reproducible:
100%

Steps to Reproduce:
1. echo hello >hello.txt
2. pssh -H localhost -o hello.txt.out cat hello.txt
3.

Actual results:
usr/lib/python3.8/site-packages/psshlib/manager.py:359: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  dest = self.files[filename] = open(
[1] 12:59:57 [SUCCESS] localhost


Expected results:
[1] 12:59:57 [SUCCESS] localhost

Additional info:

This Ubuntu bug report for the same problem in a different script contains a link to a possible fix in the calling script.   Presumably (and painfully) this fix needs to be applied to all scripts using this API.

https://askubuntu.com/questions/1216292/python3-runtimewarning-line-buffering-buffering-1-isnt-supported-in-binary-m

Comment 1 Fedora Update System 2020-04-13 08:33:24 UTC
FEDORA-2020-8c6e527e53 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8c6e527e53

Comment 2 Fedora Update System 2020-04-13 08:33:25 UTC
FEDORA-2020-8e1d127c47 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8e1d127c47

Comment 3 Fedora Update System 2020-04-13 08:33:26 UTC
FEDORA-2020-58d6d4f193 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-58d6d4f193

Comment 4 Fedora Update System 2020-04-13 18:32:38 UTC
FEDORA-2020-58d6d4f193 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-58d6d4f193`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-58d6d4f193

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-04-13 19:16:39 UTC
FEDORA-2020-8c6e527e53 has been pushed to the Fedora 30 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8c6e527e53`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8c6e527e53

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-04-13 21:17:30 UTC
FEDORA-2020-8e1d127c47 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-8e1d127c47`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8e1d127c47

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-04-22 22:55:50 UTC
FEDORA-2020-8c6e527e53 has been pushed to the Fedora 30 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2020-04-22 23:23:59 UTC
FEDORA-2020-58d6d4f193 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2020-04-25 02:21:20 UTC
FEDORA-2020-8e1d127c47 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.