question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install on MacOS 12.2 (M1)

See original GitHub issue

Python 3.8.11

Collecting aerospike
  Using cached aerospike-6.1.2.tar.gz (2.8 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: aerospike
  Building wheel for aerospike (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      running bdist_wheel
      running build
      ['make', 'V=1'] ['/usr/local/opt/openssl/lib', '/usr/local/lib'] ['ssl', 'crypto', 'pthread', 'm', 'z']
      /Applications/Xcode.app/Contents/Developer/usr/bin/make -e -C modules/common libaerospike-common.a
      cc -Isrc/include -std=gnu99 -g -Wall -fPIC -O3 -fno-common -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -march=nocona -D_DARWIN_UNLIMITED_SELECT -o target/Darwin-arm64/obj/common/aerospike/as_aerospike.o -c src/main/aerospike/as_aerospike.c
      clang: error: the clang compiler does not support '-march=nocona'
      make[1]: *** [target/Darwin-arm64/obj/common/aerospike/as_aerospike.o] Error 1
      make: *** [modules/common/target/Darwin-arm64/lib/libaerospike-common.a] Error 2
      running build_py
      running egg_info
      writing aerospike.egg-info/PKG-INFO
      writing dependency_links to aerospike.egg-info/dependency_links.txt
      writing top-level names to aerospike.egg-info/top_level.txt
      reading manifest file 'aerospike.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'modules/aerospike-lua-core/src/*.lua'
      adding license file 'LICENSE'
      running build_ext
      building 'aerospike' extension
      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 code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aerospike
  Running setup.py clean for aerospike
Failed to build aerospike
Installing collected packages: aerospike
  Running setup.py install for aerospike ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for aerospike did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      running install
      /Users/denis/PycharmProjects/panel-api/.venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      ['make', 'V=1'] ['/usr/local/opt/openssl/lib', '/usr/local/lib'] ['ssl', 'crypto', 'pthread', 'm', 'z']
      /Applications/Xcode.app/Contents/Developer/usr/bin/make -e -C modules/common libaerospike-common.a
      cc -Isrc/include -std=gnu99 -g -Wall -fPIC -O3 -fno-common -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -march=nocona -D_DARWIN_UNLIMITED_SELECT -o target/Darwin-arm64/obj/common/aerospike/as_aerospike.o -c src/main/aerospike/as_aerospike.c
      clang: error: the clang compiler does not support '-march=nocona'
      make[1]: *** [target/Darwin-arm64/obj/common/aerospike/as_aerospike.o] Error 1
      make: *** [modules/common/target/Darwin-arm64/lib/libaerospike-common.a] Error 2
      running build_py
      running egg_info
      writing aerospike.egg-info/PKG-INFO
      writing dependency_links to aerospike.egg-info/dependency_links.txt
      writing top-level names to aerospike.egg-info/top_level.txt
      reading manifest file 'aerospike.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'modules/aerospike-lua-core/src/*.lua'
      adding license file 'LICENSE'
      running build_ext
      building 'aerospike' extension
      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 code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> aerospike

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.```

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:9

github_iconTop GitHub Comments

1reaction
9en9icommented, Dec 7, 2022

Version 8.0.0 can indeed be installed on arm mac.

0reactions
sushrutt12commented, Dec 4, 2022

I am using Apple M1 chip and pip install aerospike==8.0.0 works for me. Its also mentioned in the release notes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install macOS Ventura Problems Mac, M1 MacBook Fixed
Steps to Fix Cannot install macOS Ventura/Monterey: 2022 MacOS. Fix 1: Delete installer File and Re-download macOS. On your New Software Update ...
Read more >
Unable to install macOS Monterey (… | Apple Developer Forums
I want to install macOS Monterey but it doesn't allow me as it said ... fix it as I am a developer and...
Read more >
What to do if your Ventura update is stuck - Macworld
For M1/M2 Macs: To access Safe Mode press and hold the power button until you see the startup options appear > Choose your...
Read more >
How to Fix It When macOS Monterey Installation Fails - Lifewire
This article will walk you through the steps to take when macOS Monterey fails to install correctly. Start in order as the steps...
Read more >
macOS Monterey Won't Install? Here's How To Fix It
Delete and Try Again · Open the Finder app on your Mac. · In the sidebar, select Applications. · Locate the Install macOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found