Giter Club home page Giter Club logo

Comments (61)

rbotzer avatar rbotzer commented on July 26, 2024

Hmm, my laptop and our build machine are nearly the same...alright. We will look into it. Alternatively, a new release of the Python client is around the corner. I may just ask you to check that one out.

from aerospike-client-python.

shlomoh avatar shlomoh commented on July 26, 2024

no problem, thanks

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

I just pushed out a new release (1.0.44), which works well on OS X (10.10.2). I'll be upgrading to 10.10.3 and check if I run into the same problem. One main difference is that we're using pip version 1.5.6 which comes stock with OS X.

Can you check if your problem goes away with our new release? If not, I'll get on fixing it.

from aerospike-client-python.

hmlhse avatar hmlhse commented on July 26, 2024

Hi, with new release 1.0.44, I am still getting same error as OP in OSX(10.10.3).

( did not submit the error message as it is exactly same as previous except the aerospike client version number)

But my colleague got the new release installed on his mac with same OSX version(10.10.3). We are using same Python, PIP version, except different LLVM version(if this helps):

worked -> Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
failed -> Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

That's excellent details, thanks!

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Alright, the mystery persists. I'm on 10.10.3, and pip built release 1.0.44 fine with the following:

rbotzer:~$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

One difference is I'm on pip 1.5.6 and you're in 6.1.1.

from aerospike-client-python.

hmlhse avatar hmlhse commented on July 26, 2024

The aerospike python client finally got installed after pip was reinstalled, here are the steps:

  1. removed pip and setuptools
python -m pip uninstall pip setuptools 
  1. install pip
sudo easy_install pip

The system has latest pip version:

$ pip --version
pip 6.1.1 from /usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg (python 2.7)

from aerospike-client-python.

gna-phetsarath avatar gna-phetsarath commented on July 26, 2024

I had the same issues as the OP, but was able to get it to work once I used Python 2.7.9:

pip install aerospike
Collecting aerospike
Using cached aerospike-1.0.44.tar.gz
Installing collected packages: aerospike
Running setup.py install for aerospike
Successfully installed aerospike-1.0.44

My versions:

$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

$ python --version
Python 2.7.9

$ pip --version
pip 6.1.1 from /Users/xxxx/.pyenv/versions/2.7.9/lib/python2.7/site-packages (python 2.7)

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.3
BuildVersion:   14D136

Plus, I think it's important to note that I had no other packages installed:

$pip list
aerospike (1.0.44)
pip (6.1.1)
setuptools (12.1)

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Thanks for the info, people. I still can't see the root cause, but we'll investigate it further when there's a bit of time. Since it works in most cases it's slightly lower priority to other bugs.

from aerospike-client-python.

casraz avatar casraz commented on July 26, 2024

I suspect this might be due to the latest update for Xcode... I reverted Xcode back to an older version (6.2), then using pip pip 7.0.1; and through the following: sudo pip install aerospike, everything worked. details

$ pip list
aerospike (1.0.44)
pip (6.0.7)
setuptools (12.0.5)

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

This is a simple question, but it I appreciate as many answers as I can get from people who have had this problem. Does sudo pip install aerospike work when pip install aerospike failed?

from aerospike-client-python.

bbulkow avatar bbulkow commented on July 26, 2024

No, not for me. I got the same compile error in both cases.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8: ordinal not in range(128)

I can't see why there should be an 0xe2 byte in scripts or code, so isn't it a matter of rooting out the offending character and replacing it with whatever is intended? That's piping find -R through od -X through fgrep 0xe7 to find the file and position ?

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

This should be fixed with release 1.0.46. Please verify.

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

Hi, I am getting the following error when i try to import aerospike, if anyone can help it would be great.

ImportError: dlopen(/Library/Python/2.7/site-packages/aerospike.so, 2): Symbol not found: _g_as_log
Referenced from: /Library/Python/2.7/site-packages/aerospike.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/aerospike.so

I am running a mac version 10.10.3 with python version 2.7.6.
Oh and I am using the latest version of aerospike

from aerospike-client-python.

casraz avatar casraz commented on July 26, 2024

I just tried with the latest fix and this is what I get with the following set up:

$> pip list
pip (7.0.3)
setuptools (11.0)

$> sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.3
BuildVersion: 14D136

Then when i do $ > sudo pip install aerospike

I get the following error:

Collecting aerospike
/Users/kasra/Documents/WorkSpace/DEV-aerospike/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading aerospike-1.0.46.tar.gz (123kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 1.4MB/s
Installing collected packages: aerospike
Running setup.py install for aerospike
Complete output from command /Users/kasra/Documents/WorkSpace/DEV-aerospike/bin/python -c "import setuptools, tokenize;file='/private/tmp/pip-build-wg2Rac/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-AT612c-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kasra/Documents/WorkSpace/DEV-aerospike/include/site/python2.7/aerospike:
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-wg2Rac/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 346 100 346 0 0 1146 0 --:--:-- --:--:-- --:--:-- 1149
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 16.5M 100 16.5M 0 0 1958k 0 0:00:08 0:00:08 --:--:-- 3041k
info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /private/tmp/pip-build-wg2Rac/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /private/tmp/pip-build-wg2Rac/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /private/tmp/pip-build-wg2Rac/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: Executing ./scripts/aerospike-client-c.sh
info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running install
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.10-intel-2.7
creating build/temp.macosx-10.10-intel-2.7/src
creating build/temp.macosx-10.10-intel-2.7/src/main
creating build/temp.macosx-10.10-intel-2.7/src/main/client
creating build/temp.macosx-10.10-intel-2.7/src/main/key
creating build/temp.macosx-10.10-intel-2.7/src/main/query
creating build/temp.macosx-10.10-intel-2.7/src/main/scan
creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
creating build/temp.macosx-10.10-intel-2.7/src/main/lset
creating build/temp.macosx-10.10-intel-2.7/src/main/llist
creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
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
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command 'cc' failed with exit status 1

----------------------------------------

Command "/Users/kasra/Documents/WorkSpace/DEV-aerospike/bin/python -c "import setuptools, tokenize;file='/private/tmp/pip-build-wg2Rac/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-AT612c-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kasra/Documents/WorkSpace/DEV-aerospike/include/site/python2.7/aerospike" failed with error code 1 in /private/tmp/pip-build-wg2Rac/aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Release 1.0.47 is out. If you could verify whether this is still an issue it would help.

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

I upgraded to the new version and now get this error when trying to import:
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike.so, 2): Symbol not found: _g_as_log
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike.so
Expected in: dynamic lookup

I am running a mac version 10.10.3 with python version 2.7.6.

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Right after asking people to upgrade to 1.0.47 we found a build error. I'm about to release 1.0.48 with the fix and an extra unit test... 😬

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

I upgraded to pip 7.1.0 and see a similar (though not the same) error. Can you downgrade to pip 1.5.6 and see if the problem persists?

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

It seems that pip version >= 6 on OS X attempts to use wheels or build (setup.py bdist_wheel) first, before running the source distro, and that is causing problems.

If you are on a version of pip > 1.5.x on OS X please try sudo pip --no-cache-dir install --no-binary :all: aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Alright, release 1.0.48 includes a Python wheel for OS X (pre-built binary) and I believe that should solve the problems you've been seeing. @archerydwd , @casraz, @shlomoh, @hmlhse, @bbulkow, and @gna-phetsarath if you could please verify that would help.

I've tested with a few combinations, including

pip (7.1.0)
setuptools (18.0.1)
wheel (0.24.0)

and

pip (1.5.4)
setuptools (3.3)
wheel (0.24.0)

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

pip install aerospike
Collecting aerospike
Downloading aerospike-1.0.48.tar.gz (125kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 290kB/s
Building wheels for collected packages: aerospike
Running setup.py bdist_wheel for aerospike
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;file='/private/var/folders/tm/z_9k85017nj_7gm1qn74s3y40000gn/T/pip-build-trYe6_/aerospike/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /var/folders/tm/z_9k85017nj_7gm1qn74s3y40000gn/T/tmpdxAIdfpip-wheel-:
running bdist_wheel
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.5-fat-2.7
creating build/temp.macosx-10.5-fat-2.7/src
creating build/temp.macosx-10.5-fat-2.7/src/main
creating build/temp.macosx-10.5-fat-2.7/src/main/client
creating build/temp.macosx-10.5-fat-2.7/src/main/key
creating build/temp.macosx-10.5-fat-2.7/src/main/query
creating build/temp.macosx-10.5-fat-2.7/src/main/scan
creating build/temp.macosx-10.5-fat-2.7/src/main/lstack
creating build/temp.macosx-10.5-fat-2.7/src/main/lset
creating build/temp.macosx-10.5-fat-2.7/src/main/llist
creating build/temp.macosx-10.5-fat-2.7/src/main/lmap
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Isrc/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.5-fat-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
src/include/types.h:22:10: fatal error: 'aerospike/aerospike.h' file not found
#include <aerospike/aerospike.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1


Failed building wheel for aerospike
Failed to build aerospike
Installing collected packages: aerospike
Running setup.py install for aerospike
Successfully installed aerospike-1.0.48
ir000655:~ darrendaly$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:39:00)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import aerospike
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike.so, 2): Symbol not found: _g_as_log
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike.so
Expected in: dynamic lookup

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

The above was with:
pip (7.1.0)
setuptools (15.2)
wheel (0.24.0)

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@archerydwd are you really on OS X 10.5? Can you check 'About this Mac' ? The wheel is for Mavericks on up (10.9), so it's skipping that. If that is the case, you're on a version of the OS last released 6 years ago. The problem with the newer pip ( version >= 6) is that it tries to build a wheel for you ahead of a source distribution. Since you don't have the C client installed it fails. You can force it to skip to the sdist build by running this: sudo pip --no-cache-dir install --no-binary :all: aerospike

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

Hi, I am on os: 10.10.3 and using setuptools(15.2) because at an earlier stage aerospike would not install due to the latest setuptools. I will try it again now with your most recent fix though.

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

Ok, I have installed the latest setuptools. So I now have:
pip (7.1.0)
setuptools (18.0.1)
wheel (0.24.0)

When I run sudo pip install aerospike I get:


Collecting aerospike
Downloading aerospike-1.0.48.tar.gz (125kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 2.8MB/s
Building wheels for collected packages: aerospike
Running setup.py bdist_wheel for aerospike
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;file='/private/tmp/pip-build-GUc3fk/aerospike/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpgMSoWBpip-wheel-:
running bdist_wheel
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.5-fat-2.7
creating build/temp.macosx-10.5-fat-2.7/src
creating build/temp.macosx-10.5-fat-2.7/src/main
creating build/temp.macosx-10.5-fat-2.7/src/main/client
creating build/temp.macosx-10.5-fat-2.7/src/main/key
creating build/temp.macosx-10.5-fat-2.7/src/main/query
creating build/temp.macosx-10.5-fat-2.7/src/main/scan
creating build/temp.macosx-10.5-fat-2.7/src/main/lstack
creating build/temp.macosx-10.5-fat-2.7/src/main/lset
creating build/temp.macosx-10.5-fat-2.7/src/main/llist
creating build/temp.macosx-10.5-fat-2.7/src/main/lmap
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Isrc/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.5-fat-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
src/include/types.h:22:10: fatal error: 'aerospike/aerospike.h' file not found
#include <aerospike/aerospike.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1


Failed building wheel for aerospike
Failed to build aerospike
Installing collected packages: aerospike
Running setup.py install for aerospike
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-GUc3fk/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-bVG4fN-record/install-record.txt --single-version-externally-managed --compile:
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-GUc3fk/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 346 100 346 0 0 178 0 0:00:01 0:00:01 --:--:-- 178
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 16.5M 100 16.5M 0 0 760k 0 0:00:22 0:00:22 --:--:-- 1383k
info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /private/tmp/pip-build-GUc3fk/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /private/tmp/pip-build-GUc3fk/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /private/tmp/pip-build-GUc3fk/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: Executing ./scripts/aerospike-client-c.sh
info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running install
running build
running build_ext
building 'aerospike' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.5-fat-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-GUc3fk/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-bVG4fN-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-GUc3fk/aerospike


And when I run sudo pip --no-cache-dir install --no-binary :all: aerospike I get:


Collecting aerospike
Downloading aerospike-1.0.48.tar.gz (125kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 329kB/s
Installing collected packages: aerospike
Running setup.py install for aerospike
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-Ze75RM/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-dRXkeQ-record/install-record.txt --single-version-externally-managed --compile:
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-Ze75RM/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 346 100 346 0 0 594 0 --:--:-- --:--:-- --:--:-- 594
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 16.5M 100 16.5M 0 0 1265k 0 0:00:13 0:00:13 --:--:-- 2759k
info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /private/tmp/pip-build-Ze75RM/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /private/tmp/pip-build-Ze75RM/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /private/tmp/pip-build-Ze75RM/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: Executing ./scripts/aerospike-client-c.sh
info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running install
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.5-fat-2.7
creating build/temp.macosx-10.5-fat-2.7/src
creating build/temp.macosx-10.5-fat-2.7/src/main
creating build/temp.macosx-10.5-fat-2.7/src/main/client
creating build/temp.macosx-10.5-fat-2.7/src/main/key
creating build/temp.macosx-10.5-fat-2.7/src/main/query
creating build/temp.macosx-10.5-fat-2.7/src/main/scan
creating build/temp.macosx-10.5-fat-2.7/src/main/lstack
creating build/temp.macosx-10.5-fat-2.7/src/main/lset
creating build/temp.macosx-10.5-fat-2.7/src/main/llist
creating build/temp.macosx-10.5-fat-2.7/src/main/lmap
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.5-fat-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-Ze75RM/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-dRXkeQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-Ze75RM/aerospike


from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

I'll dig into this further. I'm still scratching my head over why your console output mentions macosx-10.5 when you say you're on 10.10.3.

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

I have the same issue on the newest client.

pip list
pip (6.1.1)
setuptools (18.0.1)
clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.4
BuildVersion:   14E46

error info:

/Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting aerospike
/Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading aerospike-1.0.48.tar.gz (125kB)
...
...
    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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
    In file included from src/main/aerospike.c:22:
    In file included from src/include/client.h:21:
    In file included from src/include/types.h:23:
    In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
    In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
    In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
    In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
            __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                                ^
    1 error generated.
    error: command 'cc' failed with exit status 1

    ----------------------------------------
    Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-U37e5l/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cLixEr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-U37e5l/aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@absolute8511 can you paste the entire output from when you call pip till it errors out? This is above all a pip problem 😧

Also, please pip install --upgrade pip and try again, and let me know if that does anything positive.

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

Here is the full output. After upgrade pip, the same error.

Collecting aerospike
/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached aerospike-1.0.48.tar.gz
Installing collected packages: aerospike
  Running setup.py install for aerospike
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-gIuK7F/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-iIyUD9-record/install-record.txt --single-version-externally-managed --compile:
    info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-gIuK7F/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   346  100   346    0     0    299      0  0:00:01  0:00:01 --:--:--   299
      0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
    100 16.5M  100 16.5M    0     0  14026      0  0:20:34  0:20:34 --:--:--  153k
    info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
    info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
    8017 blocks

    CHECK
       [βœ“] /private/tmp/pip-build-gIuK7F/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
       [βœ“] /private/tmp/pip-build-gIuK7F/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
       [βœ“] /private/tmp/pip-build-gIuK7F/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

    info: Executing ./scripts/aerospike-client-c.sh
    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
    running install
    running build
    running build_ext
    building 'aerospike' extension
    creating build
    creating build/temp.macosx-10.10-intel-2.7
    creating build/temp.macosx-10.10-intel-2.7/src
    creating build/temp.macosx-10.10-intel-2.7/src/main
    creating build/temp.macosx-10.10-intel-2.7/src/main/client
    creating build/temp.macosx-10.10-intel-2.7/src/main/key
    creating build/temp.macosx-10.10-intel-2.7/src/main/query
    creating build/temp.macosx-10.10-intel-2.7/src/main/scan
    creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
    creating build/temp.macosx-10.10-intel-2.7/src/main/lset
    creating build/temp.macosx-10.10-intel-2.7/src/main/llist
    creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
    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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
    In file included from src/main/aerospike.c:22:
    In file included from src/include/client.h:21:
    In file included from src/include/types.h:23:
    In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
    In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
    In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
    In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
            __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                                ^
    1 error generated.
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-gIuK7F/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-iIyUD9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-gIuK7F/aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@absolute8511 thanks, that clarified what's going on.

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

By the way, can you check if this skips trying to build the binary distribution? Allegedly this forces a source build: sudo pip --no-cache-dir install --no-binary :all: aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Question for the people who are still having problems with pip install - if you clone the git repo and do a python setup.py build --force && python setup.py install --force does that work? If you're having problems still, can you please copy & paste the output from those commands?

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

using the sudo pip --no-cache-dir install --no-binary :all: aerospike has the same error.
python setup.py build --force also the error.

python setup.py build --force
info: Executing ./scripts/aerospike-client-c.sh
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/Users/vincentlee/workspace/aerospike-client-python/aerospike-client-c/package/aerospike-client-c.tgz'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0[proxychains] Strict chain  ...  127.0.0.1:7070  ...  www.aerospike.com:80  ...  OK
100   346  100   346    0     0    262      0  0:00:01  0:00:01 --:--:--   262
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 16.5M  100 16.5M    0     0  22874      0  0:12:36  0:12:36 --:--:-- 19338^@

info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'

info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /Users/vincentlee/workspace/aerospike-client-python/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /Users/vincentlee/workspace/aerospike-client-python/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /Users/vincentlee/workspace/aerospike-client-python/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.10-intel-2.7
creating build/temp.macosx-10.10-intel-2.7/src
creating build/temp.macosx-10.10-intel-2.7/src/main
creating build/temp.macosx-10.10-intel-2.7/src/main/client
creating build/temp.macosx-10.10-intel-2.7/src/main/key
creating build/temp.macosx-10.10-intel-2.7/src/main/query
creating build/temp.macosx-10.10-intel-2.7/src/main/scan
creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
creating build/temp.macosx-10.10-intel-2.7/src/main/lset
creating build/temp.macosx-10.10-intel-2.7/src/main/llist
creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command 'cc' failed with exit status 1

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

using: sudo pip --no-cache-dir install --no-binary :all: aerospike

Collecting aerospike
Downloading aerospike-1.0.48.tar.gz (125kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 337kB/s
Installing collected packages: aerospike
Running setup.py install for aerospike
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-SZtVay/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-U1NRDc-record/install-record.txt --single-version-externally-managed --compile:
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-SZtVay/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 346 100 346 0 0 515 0 --:--:-- --:--:-- --:--:-- 514
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 16.5M 100 16.5M 0 0 1515k 0 0:00:11 0:00:11 --:--:-- 2551k
info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /private/tmp/pip-build-SZtVay/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /private/tmp/pip-build-SZtVay/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /private/tmp/pip-build-SZtVay/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: Executing ./scripts/aerospike-client-c.sh
info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running install
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.5-fat-2.7
creating build/temp.macosx-10.5-fat-2.7/src
creating build/temp.macosx-10.5-fat-2.7/src/main
creating build/temp.macosx-10.5-fat-2.7/src/main/client
creating build/temp.macosx-10.5-fat-2.7/src/main/key
creating build/temp.macosx-10.5-fat-2.7/src/main/query
creating build/temp.macosx-10.5-fat-2.7/src/main/scan
creating build/temp.macosx-10.5-fat-2.7/src/main/lstack
creating build/temp.macosx-10.5-fat-2.7/src/main/lset
creating build/temp.macosx-10.5-fat-2.7/src/main/llist
creating build/temp.macosx-10.5-fat-2.7/src/main/lmap
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/main/aerospike.c -o build/temp.macosx-10.5-fat-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-SZtVay/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-U1NRDc-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-SZtVay/aerospike

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Thanks for the information. I'm going to upload several other wheels to cover OS X 10.10 and possibly 10.8. I've been able to recreate the problem as you've shown it.

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

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 to upgrade, then you should be able to install the aerospike client from its binary distribution.

Finally, anyone should be able to work around the pip installation issue by cloning the repo and building from source: python setup.py build --force && python setup.py install --force

from aerospike-client-python.

jaehokim00 avatar jaehokim00 commented on July 26, 2024

I have OSX 10.10.4 and I think I have same issue to install aerospike on python 2.6.9
I tried sudo pip install aerospike and I also download aerospike-client-python-1.0.46 and "sudo python setup.py install" both gives error..

us159010:aerospike-client-python-1.0.46 jaehokim00$ sudo python setup.py build --force

....
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid
output size for constraint '=a'
asm volatile ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x)...
^
1 error generated.
error: command 'cc' failed with exit status 1

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@jaehokim00 two things - please give me the full output from the pip install, as it helps identify the problem. Second, please clone the repo and build it manually, as I mentioned earlier in this thread. If you can, let me know if that works for you.

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

pip install wheel then try again to sudo pip install aerospike still show errors:

Collecting aerospike
/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading aerospike-1.0.48.tar.gz (125kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 77kB/s
Building wheels for collected packages: aerospike
  Running setup.py bdist_wheel for aerospike
  Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip-build-3_FPzs/aerospike/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp9JpsJTpip-wheel-:
  running bdist_wheel
  running build
  running build_ext
  building 'aerospike' extension
  creating build
  creating build/temp.macosx-10.10-intel-2.7
  creating build/temp.macosx-10.10-intel-2.7/src
  creating build/temp.macosx-10.10-intel-2.7/src/main
  creating build/temp.macosx-10.10-intel-2.7/src/main/client
  creating build/temp.macosx-10.10-intel-2.7/src/main/key
  creating build/temp.macosx-10.10-intel-2.7/src/main/query
  creating build/temp.macosx-10.10-intel-2.7/src/main/scan
  creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
  creating build/temp.macosx-10.10-intel-2.7/src/main/lset
  creating build/temp.macosx-10.10-intel-2.7/src/main/llist
  creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
  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 -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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
  In file included from src/main/aerospike.c:22:
  In file included from src/include/client.h:21:
  src/include/types.h:22:10: fatal error: 'aerospike/aerospike.h' file not found
  #include <aerospike/aerospike.h>
           ^
  1 error generated.
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for aerospike
Failed to build aerospike
Installing collected packages: aerospike
  Running setup.py install for aerospike

^@
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-3_FPzs/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-x9g9Ls-record/install-record.txt --single-version-externally-managed --compile:
    info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-3_FPzs/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   346  100   346    0     0    121      0  0:00:02  0:00:02 --:--:--   121
      0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
    100 16.5M  100 16.5M    0     0   143k      0  0:01:57  0:01:57 --:--:-- 51570
    info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
    info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
    8017 blocks

    CHECK
       [βœ“] /private/tmp/pip-build-3_FPzs/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
       [βœ“] /private/tmp/pip-build-3_FPzs/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
       [βœ“] /private/tmp/pip-build-3_FPzs/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

    info: Executing ./scripts/aerospike-client-c.sh
    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
    running install
    running build
    running build_ext
    building 'aerospike' extension
    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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
    In file included from src/main/aerospike.c:22:
    In file included from src/include/client.h:21:
    In file included from src/include/types.h:23:
    In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
    In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
    In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
    In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
            __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                                ^
    1 error generated.
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-3_FPzs/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-x9g9Ls-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-3_FPzs/aerospike

from aerospike-client-python.

hmlhse avatar hmlhse commented on July 26, 2024

Still failed either do pip install or manually build it on 10.10.4

System

ProductName:    Mac OS X
ProductVersion: 10.10.4
BuildVersion:   14E46
Python 2.7.6
pip (7.1.0)
setuptools (18.0.1)
wheel (0.24.0)

pip install

sudo pip install aerospike
Collecting aerospike
  Downloading aerospike-1.0.48.tar.gz (125kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 126kB 257kB/s
Building wheels for collected packages: aerospike
  Running setup.py bdist_wheel for aerospike
  Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip-build-mNGEOG/aerospike/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpUtWCV2pip-wheel-:
  running bdist_wheel
  running build
  running build_ext
  building 'aerospike' extension
  creating build
  creating build/temp.macosx-10.10-intel-2.7
  creating build/temp.macosx-10.10-intel-2.7/src
  creating build/temp.macosx-10.10-intel-2.7/src/main
  creating build/temp.macosx-10.10-intel-2.7/src/main/client
  creating build/temp.macosx-10.10-intel-2.7/src/main/key
  creating build/temp.macosx-10.10-intel-2.7/src/main/query
  creating build/temp.macosx-10.10-intel-2.7/src/main/scan
  creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
  creating build/temp.macosx-10.10-intel-2.7/src/main/lset
  creating build/temp.macosx-10.10-intel-2.7/src/main/llist
  creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
  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 -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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
  In file included from src/main/aerospike.c:22:
  In file included from src/include/client.h:21:
  src/include/types.h:22:10: fatal error: 'aerospike/aerospike.h' file not found
  #include <aerospike/aerospike.h>
           ^
  1 error generated.
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for aerospike
Failed to build aerospike
Installing collected packages: aerospike
  Running setup.py install for aerospike
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-mNGEOG/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-JgWZ1s-record/install-record.txt --single-version-externally-managed --compile:
    info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/private/tmp/pip-build-mNGEOG/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   346  100   346    0     0    522      0 --:--:-- --:--:-- --:--:--   522
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100 16.5M  100 16.5M    0     0  1814k      0  0:00:09  0:00:09 --:--:-- 3013k
    info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
    info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
    8017 blocks

    CHECK
       [βœ“] /private/tmp/pip-build-mNGEOG/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
       [βœ“] /private/tmp/pip-build-mNGEOG/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
       [βœ“] /private/tmp/pip-build-mNGEOG/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

    info: Executing ./scripts/aerospike-client-c.sh
    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
    running install
    running build
    running build_ext
    building 'aerospike' extension
    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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
    In file included from src/main/aerospike.c:22:
    In file included from src/include/client.h:21:
    In file included from src/include/types.h:23:
    In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
    In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
    In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
    In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
    ./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
            __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                                ^
    1 error generated.
    error: command 'cc' failed with exit status 1

Manually Build trace

python setup.py build --force && python setup.py install --force
info: Executing ./scripts/aerospike-client-c.sh
info: downloading 'http://www.aerospike.com/download/client/c/3.1.16/artifact/mac' to '/gitproject/git_hub/aerospike-client-python/aerospike-client-c/package/aerospike-client-c.tgz'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   346  100   346    0     0    377      0 --:--:-- --:--:-- --:--:--   376
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 16.5M  100 16.5M    0     0  1238k      0  0:00:13  0:00:13 --:--:-- 1973k
info: extracting 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.16.mac.x86_64/aerospike-client-c-devel-3.1.16.pkg'
8017 blocks

CHECK
   [βœ“] /gitproject/git_hub/aerospike-client-python/aerospike-client-c/package/usr/local/lib/libaerospike.a
   [βœ“] /gitproject/git_hub/aerospike-client-python/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
   [βœ“] /gitproject/git_hub/aerospike-client-python/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua

info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
running build
running build_ext
building 'aerospike' extension
creating build
creating build/temp.macosx-10.10-intel-2.7
creating build/temp.macosx-10.10-intel-2.7/src
creating build/temp.macosx-10.10-intel-2.7/src/main
creating build/temp.macosx-10.10-intel-2.7/src/main/client
creating build/temp.macosx-10.10-intel-2.7/src/main/key
creating build/temp.macosx-10.10-intel-2.7/src/main/query
creating build/temp.macosx-10.10-intel-2.7/src/main/scan
creating build/temp.macosx-10.10-intel-2.7/src/main/lstack
creating build/temp.macosx-10.10-intel-2.7/src/main/lset
creating build/temp.macosx-10.10-intel-2.7/src/main/llist
creating build/temp.macosx-10.10-intel-2.7/src/main/lmap
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 -Wno-strict-prototypes -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -D_DARWIN_UNLIMITED_SELECT -DMARCH_x86_64
In file included from src/main/aerospike.c:22:
In file included from src/include/client.h:21:
In file included from src/include/types.h:23:
In file included from ./aerospike-client-c/include/aerospike/as_key.h:19:
In file included from ./aerospike-client-c/include/aerospike/as_bytes.h:20:
In file included from ./aerospike-client-c/include/aerospike/as_util.h:22:
In file included from ./aerospike-client-c/include/citrusleaf/alloc.h:20:
./aerospike-client-c/include/citrusleaf/cf_atomic.h:232:54: error: invalid output size for constraint '=a'
        __asm__ __volatile__ ("lock; cmpxchgq %1,%2" : "=a"(p) : "q"(x), "m"(*(a)), "0"(b) : "memory");
                                                            ^
1 error generated.
error: command 'cc' failed with exit status 1

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@hmlhse (and anyone else with this problem) can you show your clang --version output? I'm trying to figure out what combination of tools is needed to reproduce this problem on my end. Can you try to upgrade. At this point I don't even want to involve pip and friends, just python, clang, and anything else in the compile toolchain. I was surprised it didn't build from source; until now I thought it was something related specifically to pip, setuptools, and/or wheel.

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

@hmlhse @archerydwd @absolute8511 @jaehokim00 @casraz are you on a 64-bit version of OS X? The C client will not build on 32-bit. Please copy & paste the output of uname -a.

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

uname -a

Darwin VincentdeMacBook-Pro.local 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

clang --version

Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

my results are the same as absolute8511's.

from aerospike-client-python.

hmlhse avatar hmlhse commented on July 26, 2024

uname -a

Darwin ir000222 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

clang version

Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

from aerospike-client-python.

jaehokim00 avatar jaehokim00 commented on July 26, 2024

uname -a

Darwin us159010 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

clang

Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Thanks for the information. In your case it may be trying to build a universal binary, both 32-bit and 64-bit, according to these flags -arch x86_64 -arch i386. Looking into the compiler options.

from aerospike-client-python.

jhh3 avatar jhh3 commented on July 26, 2024

I was having the same issue. Running:

sudo ARCHFLAGS="-arch x86_64" pip install aerospike

resolved the issue for me.

from aerospike-client-python.

jaehokim00 avatar jaehokim00 commented on July 26, 2024

hi, jholliman,, I tried your suggestion and it installed.. however, when I import aerospike module.. I got an error cameback

python AerospikeClient.py
Traceback (most recent call last):
File "AerospikeClient.py", line 1, in
import aerospike
ImportError: dlopen(/Library/Python/2.6/site-packages/aerospike.so, 2): Symbol not found: _PyBool_Type
Referenced from: /Library/Python/2.6/site-packages/aerospike.so
Expected in: /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
in /Library/Python/2.6/site-packages/aerospike.so

from aerospike-client-python.

jhh3 avatar jhh3 commented on July 26, 2024

Interesting. I can't reproduce that at the moment, but will try more soon.

In the meantime, could you attempt uninstalling aerospike and installing from source (if you built from source, trash it and try again):

sudo ARCHFLAGS="-arch x86_64" python setup.py install

from aerospike-client-python.

jhh3 avatar jhh3 commented on July 26, 2024

Another suggestion: Try installing/running with python 2.7 (that's the one I'm using and the current OS X default I believe).

from aerospike-client-python.

absolute8511 avatar absolute8511 commented on July 26, 2024

sudo ARCHFLAGS="-arch x86_64" pip install aerospike can work and the example can run without error. But it still show some errors during install:

src/include/types.h:22:10: fatal error: 'aerospike/aerospike.h' file not found
  #include <aerospike/aerospike.h>
           ^
  1 error generated.
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for aerospike

from aerospike-client-python.

jhh3 avatar jhh3 commented on July 26, 2024

Are you trying to install aerospike inside of a virtualenv?

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

I tried both sudo ARCHFLAGS="-arch x86_64" pip install aerospike and sudo ARCHFLAGS="-arch x86_64" python setup.py install. They both installed but when I try to import aerospike it gives this error about the architecture:
$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:39:00)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import aerospike
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike-1.0.48-py2.7-macosx-10.5-fat.egg/aerospike.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aerospike-1.0.48-py2.7-macosx-10.5-fat.egg/aerospike.so: mach-o, but wrong architecture

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

You can see from the path that your Python, though it's at version 2.7, marks itself as being compiled for OS X 10.5, and expects the extensions compiled for it to be universal (FAT), that is 64-bit and 32-bit compatible. @archerydwd I know that you upgraded to 10.10 from 10.5, but the Python version that remained is still that of the old OS. Can you show which python? I assume there's one that came with the OS upgrade that you should be using instead.

from aerospike-client-python.

archerydwd avatar archerydwd commented on July 26, 2024

$ which -a python
/Users/darrendaly/.pyenv/shims/python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
/usr/bin/python

ir000655:~ darrendaly$ which python
/Users/darrendaly/.pyenv/shims/python

$ pip show python
Metadata-Version: 1.1
Name: Python
Version: 2.7.10
Summary: A high-level object-oriented programming language
Home-page: http://www.python.org/2.7
Author: Guido van Rossum and the Python community
Author-email: [email protected]
License: PSF license
Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Release 1.0.49 is out, and with it, hopefully, the fix. Otherwise: 😱

For people having problems in virtualenv/Pyenv please do pip install --no-cache-dir aerospike. @archerydwd , @absolute8511, @hmlhse, @jaehokim00 please let me know if the problem persists. A copy & paste of the full output will help.

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

If anyone has verification (either way) of whether the fix worked, that would be great. Thanks!

from aerospike-client-python.

casraz avatar casraz commented on July 26, 2024

I always managed to somehow magically install it but the best , cleanest and smoothest run was through the last fix and the following command:
pip install --no-cache-dir--aerospike

thank you. just one irrelevant comment: I wish it was supporting a native graph schema

from aerospike-client-python.

rbotzer avatar rbotzer commented on July 26, 2024

Open me a new ticket for that one πŸ˜„

from aerospike-client-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.