<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;" class="">As discussed on IRC: Unfortunately OS X Yosemite ships with a woefully out of date OpenSSL, LDAP Lib, etc. Some of these are not easy to replace with homebrew (some are). These out of date libs are usually left only for compatibility while people move to Apple’s specific alternative libs.<div class=""><br class=""></div><div class="">Recently I ran into a couple issues with python packages that would not work without updating the setup.py (and not in a friendly way that should be done for up-stream, I think LDAP was the culprit this time). This headache made the packages unsuitable for installation in a venv via tox. As of before the 2014 holidays Keystone (and it’s Unit tests) are no longer supported on OS X. Your milage may vary with OS X older than Yosemite.</div><div class=""><br class=""></div><div class="">I recommend using Linux in a VM if you’re on OS X. Alternatively a bootcamp install of Linux would also work on most Apple laptops / machines.</div><div class=""><br class=""></div><div class="">Sorry for the bad news in this case.</div><div class="">—Morgan</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 14, 2015, at 2:45 PM, Arvind Tiwari (arvtiwar) <<a href="mailto:arvtiwar@cisco.com" class="">arvtiwar@cisco.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">Hi All,</div>
<span id="OLK_SRC_BODY_SECTION" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class=""><br class="">
</div>
<div class="">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;" class="">OpenSSL
1.0.1k 8 Jan 2015</span>” version of OpenSSL.</div>
<div class=""><br class="">
</div>
<div class="">Thanks in advance for any help,</div>
<div class="">Arvind</div>
<div class=""><br class="">
</div>
<div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ tox -e py27</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">py27 develop-inst-noop: /Users/arvtiwar/cloudDev/openstack/keystone</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">py27 runtests: PYTHONHASHSEED='0'</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">py27 runtests: commands[0] | python setup.py testr --slowest --testr-args=</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">running testr</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">running=</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">${PYTHON:-python} -m subunit.run discover -t ./ ./keystone/tests --list </div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">--- import errors ---</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Failed to import test module: keystone.tests</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Traceback (most recent call last):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 479, in _find_test_path</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> package = self._get_module_from_name(name)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> __import__(name)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "keystone/tests/__init__.py", line 41, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from keystone.tests.core import * # noqa</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "keystone/tests/core.py", line 41, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> environment.use_eventlet()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "keystone/common/environment/__init__.py", line 51, in wrapper</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> return func(*args, **kwargs)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "keystone/common/environment/__init__.py", line 66, in use_eventlet</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> import eventlet</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/__init__.py", line 10, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from eventlet import convenience</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/convenience.py", line 3, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from eventlet import greenio</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/eventlet/greenio.py", line 644, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from OpenSSL import SSL</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from OpenSSL import rand, crypto, SSL</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> from OpenSSL._util import (</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/OpenSSL/_util.py", line 4, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> binding = Binding()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 113, in __init__</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> self._ensure_ffi_initialized()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> 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</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> cls._modules,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> 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</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> lib = ffi.verifier.load_library()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/verifier.py", line 75, in load_library</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> return self._load_library()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/verifier.py", line 151, in _load_library</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> return self._vengine.load_library()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> File "/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cffi/vengine_cpy.py", line 149, in load_library</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> raise ffiplatform.VerificationError(error)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">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</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> Referenced from: /Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> Expected in: flat namespace</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> in /Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/lib/python2.7/site-packages/cryptography/_Cryptography_cffi_70441dc9x8be47966.so</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Non-zero exit code (2) from test listing.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">error: testr failed (3)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(193, 53, 30);" class="">
ERROR: InvocationError: '/Users/arvtiwar/cloudDev/openstack/keystone/.tox/py27/bin/python setup.py testr --slowest --testr-args='</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">_____________________________________________________________________________________________ summary _____________________________________________________________________________________________</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(193, 53, 30);" class="">
ERROR: py27: commands failed</div>
</div>
</div>
</span>
</div>
__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>