Package: python-paramiko Version: 2.4.0-1 Severity: important Tags: upstream
[python-gssapi maintainer X-Debbugs-Cc:ed] Hi, Jeremy. Attempting to import paramiko when python(3)-gssapi is also installed now fails with an AttributeError: >>> import paramiko Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/paramiko/__init__.py", line 22, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 38, in <module> from paramiko.auth_handler import AuthHandler File "/usr/lib/python2.7/dist-packages/paramiko/auth_handler.py", line 48, in <module> from paramiko.ssh_gss import GSSAuth, GSS_EXCEPTIONS File "/usr/lib/python2.7/dist-packages/paramiko/ssh_gss.py", line 54, in <module> GSS_EXCEPTIONS = (gssapi.GSSException,) AttributeError: 'module' object has no attribute 'GSSException' ssh_gss.py evidently accommodates the possibility that the gssapi module is absent altogether, but not that it is present but incompatible. I initially considered suggesting arranging to set GSS_EXCEPTIONS = (gssapi.exceptions.GSSError, gssapi.exceptions.GeneralError) in this case, but it looks like there may be deeper incompatibilities, so it would probably be more prudent to punt altogether on AttributeError, as already done for other specific exception types. Also, you probably ought to version the suggestion on python-gssapi, but I'm not sure what the minimum should be. (1.4.1 is current, but for all I know 1.3.x is new enough.) Could you please take a look? Thanks! -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, x32 Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python-paramiko depends on: ii python 2.7.14-4 ii python-bcrypt 3.1.4-2 ii python-cryptography 2.1.4-1 ii python-nacl 1.1.2-1+b1 ii python-pyasn1 0.4.2-3 python-paramiko recommends no packages. Versions of packages python-paramiko suggests: ii python-gssapi 1.2.0-1+b2 -- no debconf information