{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/53","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/53/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/53/events","html_url":"https://github.com/aerospike/aerospike-client-python/issues/53","id":72376319,"number":53,"title":"installation fails on mac osx yosemite (10.10.3)","user":{"login":"shlomoh","id":7313691,"avatar_url":"https://avatars.githubusercontent.com/u/7313691?v=3","gravatar_id":"","url":"https://api.github.com/users/shlomoh","html_url":"https://github.com/shlomoh","followers_url":"https://api.github.com/users/shlomoh/followers","following_url":"https://api.github.com/users/shlomoh/following{/other_user}","gists_url":"https://api.github.com/users/shlomoh/gists{/gist_id}","starred_url":"https://api.github.com/users/shlomoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlomoh/subscriptions","organizations_url":"https://api.github.com/users/shlomoh/orgs","repos_url":"https://api.github.com/users/shlomoh/repos","events_url":"https://api.github.com/users/shlomoh/events{/privacy}","received_events_url":"https://api.github.com/users/shlomoh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-python/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"milestone":null,"comments":37,"created_at":"2015-05-01T07:29:47Z","updated_at":"2015-07-21T02:46:53Z","closed_at":null,"body":"* \"pip install aerospike\" fails when compiling src/main/aerospike.c on the following error:\r\n...\r\nIn file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:\r\n    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'\r\n            __asm__ __volatile__ (\"lock; cmpxchgq %1,%2\" : \"=a\"(p) : \"q\"(x), \"m\"(*(a)), \"0\"(b) : \"memory\");\r\n...\r\n\r\n* I've installed the command line tools, openssl and Lua 5.1\r\n\r\n* complete dump:\r\n$ pip install aerospike\r\nCollecting aerospike\r\n  Using cached aerospike-1.0.43.tar.gz\r\nInstalling collected packages: aerospike\r\n  Running setup.py install for aerospike\r\n    Complete output from command /usr/bin/python -c \"import setuptools, tokenize;__file__='/private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-1mNNbR-record/install-record.txt --single-version-externally-managed --compile:\r\n    info: downloading 'http://www.aerospike.com/download/client/c/3.1.11/artifact/mac' to '/private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'\r\n      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                     Dload  Upload   Total   Spent    Left  Speed\r\n    100   346  100   346    0     0    160      0  0:00:02  0:00:02 --:--:--   160\r\n      0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0\r\n    100 16.4M  100 16.4M    0     0  1297k      0  0:00:12  0:00:12 --:--:-- 1889k\r\n    info: extracting 'aerospike-client-c-3.1.11.mac.x86_64/aerospike-client-c-devel-3.1.11.pkg' from 'aerospike-client-c.tgz'\r\n    info: extracting files from 'aerospike-client-c-3.1.11.mac.x86_64/aerospike-client-c-devel-3.1.11.pkg'\r\n    7913 blocks\r\n    \r\n    CHECK\r\n       [✓] /private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a\r\n       [✓] /private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h\r\n       [✓] /private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua\r\n    \r\n    info: Executing ./scripts/aerospike-client-c.sh\r\n    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h\r\n    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a\r\n    running install\r\n    running build\r\n    running build_ext\r\n    building 'aerospike' extension\r\n    creating build\r\n    creating build/temp.macosx-10.10-intel-2.7\r\n    creating build/temp.macosx-10.10-intel-2.7/src\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/client\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/key\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/query\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/scan\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/lstack\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/lset\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/llist\r\n    creating build/temp.macosx-10.10-intel-2.7/src/main/lmap\r\n    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.10-intel-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64\r\n    In file included from src/main/aerospike.c:22:\r\n    In file included from src/include/client.h:21:\r\n    In file included from src/include/types.h:23:\r\n    In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:\r\n    In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:\r\n    In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:\r\n    In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:\r\n    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'\r\n            __asm__ __volatile__ (\"lock; cmpxchgq %1,%2\" : \"=a\"(p) : \"q\"(x), \"m\"(*(a)), \"0\"(b) : \"memory\");\r\n                                                                ^\r\n    1 error generated.\r\n    error: command 'cc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\n    Command \"/usr/bin/python -c \"import setuptools, tokenize;__file__='/private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-1mNNbR-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /private/var/folders/l8/41zyp9sx0hl4d423hjxn9wdm0000gn/T/pip-build-MMkDhv/aerospike\r\n\r\n* system info:\r\n$ cc -v\r\nApple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)\r\nTarget: x86_64-apple-darwin14.3.0\r\nThread model: posix\r\n\r\n$ python --version\r\nPython 2.7.6\r\n\r\n$ pip --version\r\npip 6.1.1 from /Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg (python 2.7)\r\n\r\n$ sw_vers\r\nProductName:\tMac OS X\r\nProductVersion:\t10.10.3\r\nBuildVersion:\t14D136\r\n"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/comments/123133224","html_url":"https://github.com/aerospike/aerospike-client-python/issues/53#issuecomment-123133224","issue_url":"https://api.github.com/repos/aerospike/aerospike-client-python/issues/53","id":123133224,"user":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T02:46:53Z","updated_at":"2015-07-21T02:46:53Z","body":"Slowly getting there. There is still a problem is still with source distributions on newer versions of `pip`.  In the meanwhile, I uploaded wheels (binary distributions) for Python 2.7 which were built on OS X 10.10 and 10.9 and for Python 2.6 which was built on 10.10. @casraz and @absolute8511 can you both `pip install wheel` then try again to `sudo pip install aerospike` ? @archerydwd - your Python 2.7 was built on an old version of OS X (as you can see in your output) - 10.5. I highly recommend you use [pyenv](https://github.com/yyuu/pyenv) to upgrade, then you should be able to install the aerospike client from its binary distribution.\r\n\r\n"}}