Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pip install librabbitmq" failed with error code 1 #131

Closed
khpeek opened this issue Apr 1, 2019 · 13 comments
Closed

"pip install librabbitmq" failed with error code 1 #131

khpeek opened this issue Apr 1, 2019 · 13 comments

Comments

@khpeek
Copy link

khpeek commented Apr 1, 2019

Upon creating a virtual environment in Python 3.7.1 and trying pip install librabbitmq, I get the following error message:

(venv) LM-SFP-21018636:Scratch kupeek$ pip install librabbitmq
Collecting librabbitmq
  Using cached https://files.pythonhosted.org/packages/f4/4e/8f8bf33d44f3441d6f6c29b299cc847570b2c864bd8d2f9871aa6c03b73e/librabbitmq-2.0.0.tar.gz
Collecting amqp>=1.4.6 (from librabbitmq)
  Using cached https://files.pythonhosted.org/packages/42/ec/cbbaa8f75be8cbd019afb9d63258e2bdc95242f8c46a54bb90db5fef03bd/amqp-2.4.2-py2.py3-none-any.whl
Collecting six>=1.0.0 (from librabbitmq)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting vine>=1.1.3 (from amqp>=1.4.6->librabbitmq)
  Using cached https://files.pythonhosted.org/packages/7f/60/82c03047396126c8331ceb64da1dc52d4f1317209f32e8fe286d0c07365a/vine-1.3.0-py2.py3-none-any.whl
Building wheels for collected packages: librabbitmq
  Building wheel for librabbitmq (setup.py) ... error
  Complete output from command /Users/kupeek/Documents/Scratch/venv/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-wheel-0x62tr5q --python-tag cp37:
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/setup.py:167: DeprecationWarning: 'U' mode is deprecated
    long_description = open(os.path.join(BASE_PATH, 'README.rst'), 'U').read()
  running build
  - pull submodule rabbitmq-c...
  Cloning into 'rabbitmq-c'...
  Note: checking out 'caad0ef1533783729c7644a226c989c79b4c497b'.
  
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:
  
    git checkout -b <new-branch-name>
  
  - autoreconf
  sh: autoreconf: command not found
  - configure rabbitmq-c...
  /bin/sh: configure: No such file or directory
  running bdist_wheel
  installing to build/bdist.macosx-10.13-x86_64/wheel
  running install
  running install_lib
  running build_py
  creating build
  creating build/lib.macosx-10.13-x86_64-3.7
  creating build/lib.macosx-10.13-x86_64-3.7/librabbitmq
  copying librabbitmq/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/librabbitmq
  creating build/lib.macosx-10.13-x86_64-3.7/funtests
  copying funtests/config.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
  copying funtests/disabled_basic_get_leak.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
  copying funtests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
  copying funtests/setup.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
  creating build/lib.macosx-10.13-x86_64-3.7/funtests/tests
  copying funtests/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/funtests/tests
  copying funtests/tests/test_channel_errors.py -> build/lib.macosx-10.13-x86_64-3.7/funtests/tests
  running build_ext
  building '_librabbitmq' extension
  creating build/temp.macosx-10.13-x86_64-3.7
  creating build/temp.macosx-10.13-x86_64-3.7/private
  creating build/temp.macosx-10.13-x86_64-3.7/private/var
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c
  creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq
  clang -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c -o build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.o
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:299:29: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
              if (clong_value == -1)
                  ~~~~~~~~~~~ ^  ~~
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      while (item = PyIter_Next(iterator)) {
             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: note: place parentheses around the assignment to silence this warning
      while (item = PyIter_Next(iterator)) {
                  ^
             (                           )
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: note: use '==' to turn this assignment into an equality comparison
      while (item = PyIter_Next(iterator)) {
                  ^
                  ==
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:410:1: warning: unused label 'error' [-Wunused-label]
  error:
  ^~~~~~
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1003:16: warning: incompatible pointer to integer conversion returning 'PyObject *' (aka 'struct _object *') from a function with result type 'int' [-Wint-conversion]
          return PyErr_NoMemory();
                 ^~~~~~~~~~~~~~~~
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1359:13: warning: implicit declaration of function 'amqp_simple_wait_frame_on_channel' is invalid in C99 [-Wimplicit-function-declaration]
              amqp_simple_wait_frame_on_channel(conn, cur_channel, &frame);
              ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1385:22: warning: implicit declaration of function 'amqp_simple_wait_frame_on_channel' is invalid in C99 [-Wimplicit-function-declaration]
              retval = amqp_simple_wait_frame_on_channel(conn, cur_channel, &frame);
                       ^
  6 warnings generated.
  clang -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c -o build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.o
  In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: error: expected ')'
  DECLARE_XTOXLL(hton)
  ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:481:1: note: expanded from here
  htonll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
  #define htonll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                               ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: note: to match this '('
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:481:1: note: expanded from here
  htonll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
  #define htonll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
      ^
  In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: error: definition of builtin function '__builtin_constant_p'
  DECLARE_XTOXLL(hton)
  ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:481:1: note: expanded from here
  htonll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
  #define htonll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
       ^
  In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: error: expected ')'
  DECLARE_XTOXLL(ntoh)
  ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:484:1: note: expanded from here
  ntohll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
  #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                               ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: note: to match this '('
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:484:1: note: expanded from here
  ntohll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
  #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
      ^
  In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: error: definition of builtin function '__builtin_constant_p'
  DECLARE_XTOXLL(ntoh)
  ^
  /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
    static inline uint64_t func##ll(uint64_t val)     \
                           ^
  <scratch space>:484:1: note: expanded from here
  ntohll
  ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
  #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                          ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
      (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
       ^
  4 errors generated.
  error: command 'clang' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for librabbitmq
  Running setup.py clean for librabbitmq
Failed to build librabbitmq
Installing collected packages: vine, amqp, six, librabbitmq
  Running setup.py install for librabbitmq ... error
    Complete output from command /Users/kupeek/Documents/Scratch/venv/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-record-8uma_s33/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kupeek/Documents/Scratch/venv/bin/../include/site/python3.7/librabbitmq:
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/setup.py:167: DeprecationWarning: 'U' mode is deprecated
      long_description = open(os.path.join(BASE_PATH, 'README.rst'), 'U').read()
    running build
    - autoreconf
    sh: autoreconf: command not found
    - configure rabbitmq-c...
    /bin/sh: configure: No such file or directory
    running install
    running install_lib
    running build_py
    creating build
    creating build/lib.macosx-10.13-x86_64-3.7
    creating build/lib.macosx-10.13-x86_64-3.7/librabbitmq
    copying librabbitmq/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/librabbitmq
    creating build/lib.macosx-10.13-x86_64-3.7/funtests
    copying funtests/config.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
    copying funtests/disabled_basic_get_leak.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
    copying funtests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
    copying funtests/setup.py -> build/lib.macosx-10.13-x86_64-3.7/funtests
    creating build/lib.macosx-10.13-x86_64-3.7/funtests/tests
    copying funtests/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/funtests/tests
    copying funtests/tests/test_channel_errors.py -> build/lib.macosx-10.13-x86_64-3.7/funtests/tests
    running build_ext
    building '_librabbitmq' extension
    creating build/temp.macosx-10.13-x86_64-3.7
    creating build/temp.macosx-10.13-x86_64-3.7/private
    creating build/temp.macosx-10.13-x86_64-3.7/private/var
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c
    creating build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq
    clang -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c -o build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.o
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:299:29: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
                if (clong_value == -1)
                    ~~~~~~~~~~~ ^  ~~
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        while (item = PyIter_Next(iterator)) {
               ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: note: place parentheses around the assignment to silence this warning
        while (item = PyIter_Next(iterator)) {
                    ^
               (                           )
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:365:17: note: use '==' to turn this assignment into an equality comparison
        while (item = PyIter_Next(iterator)) {
                    ^
                    ==
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:410:1: warning: unused label 'error' [-Wunused-label]
    error:
    ^~~~~~
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1003:16: warning: incompatible pointer to integer conversion returning 'PyObject *' (aka 'struct _object *') from a function with result type 'int' [-Wint-conversion]
            return PyErr_NoMemory();
                   ^~~~~~~~~~~~~~~~
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1359:13: warning: implicit declaration of function 'amqp_simple_wait_frame_on_channel' is invalid in C99 [-Wimplicit-function-declaration]
                amqp_simple_wait_frame_on_channel(conn, cur_channel, &frame);
                ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/Modules/_librabbitmq/connection.c:1385:22: warning: implicit declaration of function 'amqp_simple_wait_frame_on_channel' is invalid in C99 [-Wimplicit-function-declaration]
                retval = amqp_simple_wait_frame_on_channel(conn, cur_channel, &frame);
                         ^
    6 warnings generated.
    clang -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq -I/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c -o build/temp.macosx-10.13-x86_64-3.7/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.o
    In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: error: expected ')'
    DECLARE_XTOXLL(hton)
    ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:481:1: note: expanded from here
    htonll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
    #define htonll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                                 ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: note: to match this '('
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:481:1: note: expanded from here
    htonll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
    #define htonll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
        ^
    In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:332:1: error: definition of builtin function '__builtin_constant_p'
    DECLARE_XTOXLL(hton)
    ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:481:1: note: expanded from here
    htonll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
    #define htonll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
         ^
    In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: error: expected ')'
    DECLARE_XTOXLL(ntoh)
    ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:484:1: note: expanded from here
    ntohll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
    #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                                 ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: note: to match this '('
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:484:1: note: expanded from here
    ntohll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
    #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
        ^
    In file included from /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_api.c:48:
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:333:1: error: definition of builtin function '__builtin_constant_p'
    DECLARE_XTOXLL(ntoh)
    ^
    /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/rabbitmq-c/librabbitmq/amqp_private.h:298:26: note: expanded from macro 'DECLARE_XTOXLL'
      static inline uint64_t func##ll(uint64_t val)     \
                             ^
    <scratch space>:484:1: note: expanded from here
    ntohll
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
    #define ntohll(x)       __DARWIN_OSSwapInt64(x)
                            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
        (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
         ^
    4 errors generated.
    error: command 'clang' failed with exit status 1
    
    ----------------------------------------
Command "/Users/kupeek/Documents/Scratch/venv/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-record-8uma_s33/install-record.txt --single-version-externally-managed --compile --install-headers /Users/kupeek/Documents/Scratch/venv/bin/../include/site/python3.7/librabbitmq" failed with error code 1 in /private/var/folders/mj/hrpg96fd1bx79ty98grp2d643kh7j1/T/pip-install-k5wnfkla/librabbitmq/

Here is the verification of the Python version:

(venv) LM-SFP-21018636:Scratch kupeek$ python --version
Python 3.7.1

Any idea what is causing this?

@bsolomon1124
Copy link

bsolomon1124 commented Apr 19, 2019

Doesn't look like a duplicate of #127 to me. Regardless, confirming this still occurs on Mac OSX High Sierra 10.13.6, Python 3.7.2.

This is a nonstarter for using RabbitMQ as Celery message broker. This build has been broken for 3 weeks now, what's the status?

@sempervirescent
Copy link

Why has this been closed? It does not seem to be a duplicate of 127.
This is happening for me as well in macOS Mojave with Python 2.7.

@mushishi06
Copy link

mushishi06 commented Dec 4, 2019

AS For me After multiple test and try / update to latest version (even dev, rabbitmq-c), it appear to NOT be compatible with Python > 3.6
tested with Python 3.7.3, 3.8.0 => Failed
tested with Python 3.6.9 => success

if it can help peoples to not lose 3h on it (:

@aberrier
Copy link

If you are on Ubuntu you can try to install these packages

apt-get install -y --no-install-recommends \
        autoconf \
        automake \
        pkg-config \
        libtool

@mohammadalimehdizadeh
Copy link

mohammadalimehdizadeh commented Aug 29, 2020

@aberrier solution works for me, thanks.

@zeraien
Copy link

zeraien commented Aug 31, 2020

If you are on Ubuntu you can try to install these packages

apt-get install -y --no-install-recommends \
        autoconf \
        automake \
        pkg-config \
        libtool

Thank you thank you thank you!

@manuelep
Copy link

If you are on Ubuntu you can try to install these packages

apt-get install -y --no-install-recommends \
        autoconf \
        automake \
        pkg-config \
        libtool

solved for me too

@OnkelTem
Copy link

If you are on Ubuntu you can try to install these packages

apt-get install -y --no-install-recommends \
        autoconf \
        automake \
        pkg-config \
        libtool

Same, it has solved for me it as well on Linux Ubuntu 20.04.
Btw, the fact that it's successfully passing the configure probably means that it's malwritten. Otherwise WHY it didn't ask us to install those deps?

@atknin
Copy link

atknin commented Jun 22, 2022

Works, thank you @aberrier

@SameerShiekh77
Copy link

it is working.. @aberrier thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

12 participants