Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1117

Cannot install python SDK on MAC

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 3.1.2
    • library
    • None
    • 1

    Description

      Install latest CB python SDK on a new Mac machine

      /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
        #error architecture not supported
         ^
        fatal error: too many errors emitted, stopping now [-ferror-limit=]
        20 errors generated.
        /private/tmp/pip-install-97s_kpwj/couchbase_fa7c68c953fa4ba5bf2abc3c5e098219/cbuild_config.py:292: UserWarning: Adding /usr/local to lib search path for OS X
          warnings.warn('Adding /usr/local to lib search path for OS X')
        error: command 'clang' failed with exit status 1
      
      

      Install script attached.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYCBC-1117
          # Subject Branch Project Status CR V

          Activity

            jared.casey Jared Casey added a comment -

            Hi Ritam Sharma - this looks like the same problem listed here.  Can you either use virtual environments or install python via homebrew?  That should correct the problem with installing on the Mac provided Python version.

            jared.casey Jared Casey added a comment - Hi Ritam Sharma - this looks like the same problem listed here .  Can you either use virtual environments or install python via homebrew?  That should correct the problem with installing on the Mac provided Python version.

            Jared Casey - I tried using virtual env, but run into the same same issues of 'architecture not supported' same stack trace as attached.

            ritam.sharma Ritam Sharma added a comment - Jared Casey - I tried using virtual env, but run into the same same issues of 'architecture not supported' same stack trace as attached.
            jared.casey Jared Casey added a comment -

            Hi Ritam Sharma - The README has been updated with details on how to work-around the issue you are seeing with the system installed Python. We should be releasing the client shortly and once 3.1.2 is available you will see the README updates.

            We will also look to update the install docs.

            jared.casey Jared Casey added a comment - Hi Ritam Sharma - The README has been updated with details on how to work-around the issue you are seeing with the system installed Python. We should be releasing the client shortly and once 3.1.2 is available you will see the README updates. We will also look to update the install docs.
            ritam.sharma Ritam Sharma added a comment -

            Jared Casey - I still have issues with install both via package install and via install from source too. I am see the same issue with

            /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
              #error architecture not supported
               ^
              fatal error: too many errors emitted, stopping now [-ferror-limit=]
              20 errors generated.
              /private/var/folders/w2/2n92cps17fz3y5tfbq3q50640000gn/T/pip-req-build-jt2q3oj_/cbuild_config.py:292: UserWarning: Adding /usr/local to lib search path for OS X
                warnings.warn('Adding /usr/local to lib search path for OS X')
              error: command 'clang' failed with exit status 1
              ----------------------------------------
              ERROR: Failed building wheel for couchbase
              Running setup.py clean for couchbase
            Failed to build couchbase
            ERROR: Could not build wheels for couchbase which use PEP 517 and cannot be installed directly
            

            ritam.sharma Ritam Sharma added a comment - Jared Casey - I still have issues with install both via package install and via install from source too. I am see the same issue with /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported #error architecture not supported ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. /private/var/folders/w2/2n92cps17fz3y5tfbq3q50640000gn/T/pip-req-build-jt2q3oj_/cbuild_config.py:292: UserWarning: Adding /usr/local to lib search path for OS X warnings.warn('Adding /usr/local to lib search path for OS X') error: command 'clang' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for couchbase Running setup.py clean for couchbase Failed to build couchbase ERROR: Could not build wheels for couchbase which use PEP 517 and cannot be installed directly
            jared.casey Jared Casey added a comment -

            Hi Ritam Sharma - are you following the instructions in the REAMDE? You should not use the Python version that comes factory installed on the Mac. You need to either install Python via Homebrew, Pyenv or Python.org.

            jared.casey Jared Casey added a comment - Hi Ritam Sharma - are you following the instructions in the REAMDE ? You should not use the Python version that comes factory installed on the Mac. You need to either install Python via Homebrew, Pyenv or Python.org.
            ritam.sharma Ritam Sharma added a comment -

            Thanks Jared Casey - Closing this ticket. I was able to get it running via pyenv.

            ritam.sharma Ritam Sharma added a comment - Thanks Jared Casey - Closing this ticket. I was able to get it running via pyenv.

            People

              jared.casey Jared Casey
              ritam.sharma Ritam Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty