Skip to content

BytesWarning with py3 -bb #1593

Open
Open

Description

@justinpryzby

Similar to #726 Python 3.6.8 -bb causes this. I'm using -bb to try to catch issues while migrating from py2. I didn't realize packages didn't all handle that already.

File "/usr/local/lib/python3.6/site-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/usr/local/lib/python3.6/site-packages/paramiko/auth_handler.py", line 656, in _parse_userauth_banner
self._log(INFO, "Auth banner: {}".format(banner))
BytesWarning: str() on a bytes instance

Activity

  1. justinpryzby commented on Jun 10, 2020

    @justinpryzby
    Author

    This is still an issue, but I worked around it by ignoring the warnings (errors) like so:
    PYTHONWARNINGS=i::BytesWarning:paramiko.transport....

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions