Centos6.5下安装jumpserver-1.4.1报错AttributeError: module 'gssapi' has no attribute 'GSSException'

 

报错:

>>> import paramiko
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Data/apps/ENV3/lib/python3.6/site-packages/paramiko/__init__.py", line 22, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/Data/apps/ENV3/lib/python3.6/site-packages/paramiko/transport.py", line 38, in <module>
    from paramiko.auth_handler import AuthHandler
  File "/Data/apps/ENV3/lib/python3.6/site-packages/paramiko/auth_handler.py", line 72, in <module>
    from paramiko.ssh_gss import GSSAuth, GSS_EXCEPTIONS
  File "/Data/apps/ENV3/lib/python3.6/site-packages/paramiko/ssh_gss.py", line 55, in <module>
    GSS_EXCEPTIONS = (gssapi.GSSException,)
AttributeError: module 'gssapi' has no attribute 'GSSException'  

解决:

       各种尝试,结果是paramiko模块2.4版本无法识别gssapi,降为paramiko==2.3.1 正常

 

posted @ 2018-10-08 17:47  浮光掠影转瞬间  阅读(1863)  评论(0编辑  收藏  举报