docker-compose启动报错
Traceback (most recent call last):File “/usr/bin/docker-compose”, line 6, infrom compose.cli.main import mainFile “/usr/lib/python2.7/site-packages/compose/cli/main.py”, line 17, inimport docker...
Traceback (most recent call last):
File “/usr/bin/docker-compose”, line 6, in
from compose.cli.main import main
File “/usr/lib/python2.7/site-packages/compose/cli/main.py”, line 17, in
import docker
File “/usr/lib/python2.7/site-packages/docker/init.py”, line 2, in
from .api import APIClient
File “/usr/lib/python2.7/site-packages/docker/api/init.py”, line 2, in
from .client import APIClient
File “/usr/lib/python2.7/site-packages/docker/api/client.py”, line 10, in
from .build import BuildApiMixin
File “/usr/lib/python2.7/site-packages/docker/api/build.py”, line 6, in
from … import auth
File “/usr/lib/python2.7/site-packages/docker/auth.py”, line 9, in
from .utils import config
File “/usr/lib/python2.7/site-packages/docker/utils/init.py”, line 3, in
from .decorators import check_resource, minimum_version, update_headers
File “/usr/lib/python2.7/site-packages/docker/utils/decorators.py”, line 4, in
from . import utils
File “/usr/lib/python2.7/site-packages/docker/utils/utils.py”, line 13, in
from … import tls
File “/usr/lib/python2.7/site-packages/docker/tls.py”, line 5, in
from .transport import SSLHTTPAdapter
File “/usr/lib/python2.7/site-packages/docker/transport/init.py”, line 11, in
from .sshconn import SSHHTTPAdapter
File “/usr/lib/python2.7/site-packages/docker/transport/sshconn.py”, line 1, in
import paramiko
File “/usr/lib/python2.7/site-packages/paramiko/init.py”, line 22, in
from paramiko.transport import SecurityOptions, Transport
File “/usr/lib/python2.7/site-packages/paramiko/transport.py”, line 38, in
from paramiko.auth_handler import AuthHandler
File “/usr/lib/python2.7/site-packages/paramiko/auth_handler.py”, line 72, in
from paramiko.ssh_gss import GSSAuth, GSS_EXCEPTIONS
出现问题:
File “/usr/lib/python2.7/site-packages/paramiko/ssh_gss.py”, line 55, in
GSS_EXCEPTIONS = (gssapi.GSSException,)
AttributeError: ‘module’ object has no attribute ‘GSSException’***
解决方法:
修改/usr/lib/python2.7/site-packages/paramiko目录下ssh_gss.py文件,
修改53,54行
修改为:
53 import gssapi.error
54 GSS_EXCEPTIONS = (gssapi.error.GSSException,)
能力不足水平有限
有问题别说脏话
欢迎前来学习交流
email:1848199654@qq.com
更多推荐
所有评论(0)