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

Errors when installing on MacOSX from source at build time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0
    • None
    • None
    • None
    • 1
    • SDK13: Coll/Txn/Docs More Chip, SDK15: Ruby/Coll/Docs

    Description

      I'm on Catalina, FWIW.

      The first part,

       python3 setup.py clean build_ext --inplace
      

      works fine. Then I

      pip3 install .
      

      and I see:

      CMake Error: The current CMakeCache.txt directory /private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/build/temp.macosx-10.15-x86_64-3.7/CMakeCache.txt is different than the directory /Users/davidkelly/projects/gerrit/couchbase-python-client/build/temp.macosx-10.15-x86_64-3.7 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
        CMake Error: The source "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/CMakeLists.txt" does not match the source "/Users/davidkelly/projects/gerrit/couchbase-python-client/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
        /private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/cbuild_config.py:236: UserWarning: Adding /usr/local to lib search path for OS X
          warnings.warn('Adding /usr/local to lib search path for OS X')
        set base as ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        self.base is ['build', 'temp.macosx-10.15-x86_64-3.7']
        got rpaths ['@loader_path', 'build/temp.macosx-10.15-x86_64-3.7/install/lib/Release']
        set base as ['build', 'temp.macosx-10.15-x86_64-3.7']
        LIBDIR /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib, LIBPL /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
        fpath /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/Python.framework/Versions/3.7/Python does not exist
        fpath /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin/Python.framework/Versions/3.7/Python does not exist
        got fpath /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib:
        fpath /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib is file, selecting
        got fpath /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m/../../lib:
        fpath /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m/../../lib is directory, contents ['pkgconfig', 'libpython3.7.dylib', 'libpython3.7m.dylib', 'python3.7']
        trying subentry:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig
        got match /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/pkgconfig, breaking out
        trying subentry:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib
        got match /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib, breaking out
        trying subentry:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
        got match /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib, breaking out
        trying subentry:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7
        got match /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7, breaking out
        Launching build with env: {'TERM_PROGRAM': 'iTerm.app', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'TMPDIR': '/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/', 'TERM_PROGRAM_VERSION': '3.3.7', 'OLDPWD': '/Users/davidkelly', 'TERM_SESSION_ID': 'w3t0p0:1239215F-3ECC-4422-AE49-B7F44DBCD12A', 'SDKMAN_PLATFORM': 'Darwin', 'USER': 'davidkelly', 'COMMAND_MODE': 'unix2003', 'SDKMAN_CANDIDATES_API': 'https://api.sdkman.io/2', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.3W2JvDPJlT/Listeners', '__CF_USER_TEXT_ENCODING': '0x1F8:0x0:0x0', 'PATH': '/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/bin:/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/normal/bin:/Users/davidkelly/.sdkman/candidates/java/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Applications/Wireshark.app/Contents/MacOS:/Users/davidkelly/Library/Python/3.7/bin', 'LaunchInstanceID': '8AA27F6D-C7A4-44EF-A4E0-7A75DBF0E1F3', 'PWD': '/Users/davidkelly/projects/gerrit/couchbase-python-client', 'JAVA_HOME': '/Users/davidkelly/.sdkman/candidates/java/current', 'LANG': 'en_US.UTF-8', 'SDKMAN_VERSION': '5.7.3+337', 'ITERM_PROFILE': 'Default', 'XPC_FLAGS': '0x0', 'XPC_SERVICE_NAME': '0', 'SHLVL': '1', 'HOME': '/Users/davidkelly', 'COLORFGBG': '12;8', 'LC_TERMINAL_VERSION': '3.3.7', 'ITERM_SESSION_ID': 'w3t0p0:1239215F-3ECC-4422-AE49-B7F44DBCD12A', 'LOGNAME': 'davidkelly', 'SDKMAN_DIR': '/Users/davidkelly/.sdkman', 'PROMPT_COMMAND': '__git_ps1 "\\u@\\h:\\W" "\\\\\\$ "', 'SDKMAN_CANDIDATES_DIR': '/Users/davidkelly/.sdkman/candidates', 'LC_TERMINAL': 'iTerm2', 'SECURITYSESSIONID': '186a6', 'COLORTERM': 'truecolor', '_': '/usr/local/bin/pip3', '__PYVENV_LAUNCHER__': '/usr/local/Cellar/python/3.7.5/bin/python3.7', 'PIP_REQ_TRACKER': '/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-tracker-nzr5l8_u', 'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/site', 'PEP517_BUILD_BACKEND': 'setuptools.build_meta:__legacy__', 'PLAT': 'macosx-10.15-x86_64', 'CXXFLAGS': ' -Wno-strict-prototypes -fPIC -Wswitch -Werror -Wno-missing-braces -DPYCBC_LCB_API=0x02FF04 -DVERSION_INFO=\\"3.0.0b1.dev9+gb9df277a\\"', 'CFLAGS': ' -Wno-strict-prototypes -fPIC -Wswitch -Werror -Wno-missing-braces -DPYCBC_LCB_API=0x02FF04'}, build_args: ['--config', 'Release', '--', '-j2'], cmake_args: ['-DPYCBC_LCB_API=0x02FF04', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/build/lib.macosx-10.15-x86_64-3.7/couchbase_core', '-DPYTHON_EXECUTABLE=/usr/local/Cellar/python/3.7.5/bin/python3.7', '-DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m', '-DHYBRID_BUILD=TRUE', '-DPYTHON_LIBFILE=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib', '-DPYTHON_LIBDIR=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib', '-DPYTHON_VERSION_EXACT=3.7', '-DCMAKE_BUILD_TYPE=RELEASE', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']
        Traceback (most recent call last):
          File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
            main()
          File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
            metadata_directory)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 209, in build_wheel
            wheel_directory, config_settings)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 194, in _build_with_temp_dir
            self.run_setup()
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 237, in run_setup
            self).run_setup(setup_script=setup_script)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
            exec(compile(code, __file__, 'exec'), locals())
          File "setup.py", line 121, in <module>
            **setup_kw
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
            return distutils.core.setup(**attrs)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
            dist.run_commands()
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
            self.run_command(cmd)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
            self.run_command('build')
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
            self.run_command(cmd_name)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/cmake_build.py", line 61, in run
            build_ext.run(self)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-build-env-dwtr7y58/overlay/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
            _build_ext.run(self)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run
            self.build_extensions()
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
            self._build_extensions_serial()
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
            self.build_extension(ext)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/cbuild_config.py", line 223, in build_extension
            self.prep_build(ext)
          File "/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/cmake_build.py", line 160, in prep_build
            cwd=self.build_temp, env=env)
          File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9', '-DPYCBC_LCB_API=0x02FF04', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/rb/ssbbyy9969508mcd8p0d4shw0000gr/T/pip-req-build-vadu20y9/build/lib.macosx-10.15-x86_64-3.7/couchbase_core', '-DPYTHON_EXECUTABLE=/usr/local/Cellar/python/3.7.5/bin/python3.7', '-DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m', '-DHYBRID_BUILD=TRUE', '-DPYTHON_LIBFILE=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib', '-DPYTHON_LIBDIR=/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib', '-DPYTHON_VERSION_EXACT=3.7', '-DCMAKE_BUILD_TYPE=RELEASE', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']' returned non-zero 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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            david.kelly David Kelly (Inactive)
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty