<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi All,</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>I am new to MAC OS, trying to setup Keystone development environment and stuck at running the keystone tests, getting error (below) related to openssl while running tox. I am having “<span style="background-color: rgb(250, 253, 200); font-family: Menlo; font-size: 11px;">OpenSSL
1.0.1k 8 Jan 2015</span>” version of OpenSSL.</div>
<div><br>
</div>
<div>Thanks in advance for any help,</div>
<div>Arvind</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">$ tox -e py27</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>py27 develop-inst-noop: /Users/arvtiwar/cloudDev/openstack/keystone</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>py27 runtests: PYTHONHASHSEED='0'</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>py27 runtests: commands[0] | python setup.py testr --slowest --testr-args=</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">running testr</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">running=</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">${PYTHON:-python} -m subunit.run discover -t ./ ./keystone/tests --list </p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">--- import errors ---</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Failed to import test module: keystone.tests</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Traceback (most recent call last):</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 479, in _find_test_path</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> package = self._get_module_from_name(name)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> __import__(name)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "keystone/tests/__init__.py", line 41, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from keystone.tests.core import * # noqa</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "keystone/tests/core.py", line 41, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> environment.use_eventlet()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "keystone/common/environment/__init__.py", line 51, in wrapper</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> return func(*args, **kwargs)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "keystone/common/environment/__init__.py", line 66, in use_eventlet</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> import eventlet</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/__init__.py", line 10, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from eventlet import convenience</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/convenience.py", line 3, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from eventlet import greenio</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/greenio.py", line 644, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from OpenSSL import SSL</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from OpenSSL import rand, crypto, SSL</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> from OpenSSL._util import (</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/_util.py", line 4, in <module></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> binding = Binding()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 113, in __init__</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> self._ensure_ffi_initialized()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 123, in _ensure_ffi_initialized</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> cls._modules,</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 31, in load_library_for_binding</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> lib = ffi.verifier.load_library()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/verifier.py", line 75, in load_library</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> return self._load_library()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/verifier.py", line 151, in _load_library</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> return self._vengine.load_library()</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/vengine_cpy.py", line 149, in load_library</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> raise ffiplatform.VerificationError(error)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">VerificationError: importing '/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so': dlopen(/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so,
2): Symbol not found: _BIO_new_CMS</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> Referenced from: /Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> Expected in: flat namespace</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"> in /Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Non-zero exit code (2) from test listing.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">error: testr failed (3)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(193, 53, 30);">
ERROR: InvocationError: '/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/bin/python setup.py testr --slowest --testr-args='</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">_____________________________________________________________________________________________ summary _____________________________________________________________________________________________</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(193, 53, 30);">
ERROR: py27: commands failed</p>
</div>
</div>
</span>
</body>
</html>