kolla-build fails at start due to AtrributeError please help
I got the kolla repo with the stable/pike branch and did a pip install and it was successful. Also followed all the steps on the quick start guide to get everything setup and configured.
I run kolla-build -b centos -t source
and I get the error below. Any attempt of using the kolla-build
command causes this error below:
Traceback (most recent call last):
File "/usr/bin/kolla-build", line 6, in <module>
from kolla.cmd.build import main
File "/usr/lib/python2.7/site-packages/kolla/cmd/build.py", line 26, in <module>
from kolla.image import build
File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 24, in <module>
import requests
File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 84, in <module>
from urllib3.contrib import pyopenssl
File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 105, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
What is causing this error?? How do I fix this?
I've not used
kolla-build
before, but it looks like your version of pyOpenSSL is incompatible (or not present). Try to reinstall it?That fixed it but now its giving a similar error below:
File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 586, in __init__ self.dc = docker.APIClient(version='auto', **docker_kwargs) AttributeError: 'module' object has no attribute 'APIClient'
Now it looks as though you've not installed the Docker SDK. The Python script has
import docker
and this line attempts to accessdocker.APIClient
, but that fails because it doesn't exist. Have you installed the prerequisites for this software?