I’m trying to load the couchbase python sdk package running pip but the build of the "wheel 517) keeps failing. I went back to the docs and ran through the install steps for an ubuntu VM but I still get errors. The output is quite long so I’m posting the lines that appear to be part of my problem:
CMake Warning at deps/couchbase-cxx-client/cmake/Cache.cmake:28 (message):
ccache is enabled but was not found. Not using it
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Looking for strtod_l
– Looking for strtod_l - not found
– Looking for sys/endian.h
– Looking for sys/endian.h - not found
– Looking for windows.h
– Looking for windows.h - not found
– Looking for lzo1x_1_15_compress in lzo2
– Looking for lzo1x_1_15_compress in lzo2 - not found
– Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX
– Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed
– Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2
– Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed
– Performing Test SNAPPY_HAVE_SSSE3
– Performing Test SNAPPY_HAVE_SSSE3 - Failed
– Performing Test SNAPPY_HAVE_BMI2
– Performing Test SNAPPY_HAVE_BMI2 - Failed
– Using std::filesystem
CMake Warning (dev) at deps/couchbase-transactions-cxx/CMakeLists.txt:83:
Syntax Warning in cmake code at column 58
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
– Getting SHA…
fatal: not a git repository: /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-transactions-cxx/…/…/.git/modules/deps/couchbase-transactions-cxx
[ 85%] Building CXX object deps/couchbase-transactions-cxx/CMakeFiles/transactions_cxx.dir/src/transactions/staged_mutation.cxx.o
cd /tmp/pip-install-6o7t6lg3/couchbase/build/temp.linux-x86_64-cpython-38/deps/couchbase-transactions-cxx && /usr/bin/c++ -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-transactions-cxx/include -I/tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/asio/asio/include -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/gsl/include -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/json/include -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/cxx_function -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/fmt/include -isystem /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-cxx-client/third_party/spdlog/include -O3 -DNDEBUG -fPIC -std=gnu++17 -MD -MT deps/couchbase-transactions-cxx/CMakeFiles/transactions_cxx.dir/src/transactions/staged_mutation.cxx.o -MF CMakeFiles/transactions_cxx.dir/src/transactions/staged_mutation.cxx.o.d -o CMakeFiles/transactions_cxx.dir/src/transactions/staged_mutation.cxx.o -c /tmp/pip-install-6o7t6lg3/couchbase/deps/couchbase-transactions-cxx/src/transactions/staged_mutation.cxx
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [CMakeFiles/Makefile2:1211: deps/couchbase-transactions-cxx/CMakeFiles/transactions_cxx.dir/all] Error 2
make[1]: Leaving directory ‘/tmp/pip-install-6o7t6lg3/couchbase/build/temp.linux-x86_64-cpython-38’
make: *** [Makefile:159: all] Error 2
cmake config args: [’/tmp/pip-build-env-y4fr5sh2/overlay/bin/cmake’, ‘/tmp/pip-install-6o7t6lg3/couchbase’, ‘-DCMAKE_BUILD_TYPE=Release’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-6o7t6lg3/couchbase/build/lib.linux-x86_64-cpython-38/couchbase’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=/tmp/pip-install-6o7t6lg3/couchbase/build/lib.linux-x86_64-cpython-38/couchbase’, ‘-DPYTHON_EXECUTABLE=/usr/bin/python3’, ‘-DOPENSSL_VERSION=1.1.1g’]
cmake build args: [’/tmp/pip-build-env-y4fr5sh2/overlay/bin/cmake’, ‘–build’, ‘.’, ‘–config’, ‘Release’, ‘–parallel’, ‘4’] Traceback (most recent call last):
File “/tmp/tmpu1o4c584”, line 280, in
main()
File “/tmp/tmpu1o4c584”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “/tmp/tmpu1o4c584”, line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/build_meta.py”, line 244, in build_wheel
return self._build_with_temp_dir([‘bdist_wheel’], ‘.whl’,
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/build_meta.py”, line 229, in _build_with_temp_dir
self.run_setup()
-DPYTHON_EXECUTABLE=/usr/bin/python3’, ‘-DOPENSSL_VERSION=1.1.1g’]
cmake build args: [’/tmp/pip-build-env-y4fr5sh2/overlay/bin/cmake’, ‘–build’, ‘.’, ‘–config’, ‘Release’, ‘–parallel’, ‘4’] Traceback (most recent call last):
File “/tmp/tmpu1o4c584”, line 280, in
main()
File “/tmp/tmpu1o4c584”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “/tmp/tmpu1o4c584”, line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/build_meta.py”, line 244, in build_wheel
return self._build_with_temp_dir([‘bdist_wheel’], ‘.whl’,
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/build_meta.py”, line 229, in _build_with_temp_dir
self.run_setup()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/build_meta.py”, line 174, in run_setup
exec(compile(code, file, ‘exec’), locals())
File “setup.py”, line 185, in
setup(name=‘couchbase’,
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/init.py”, line 87, in setup
return distutils.core.setup(**attrs)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 148, in setup
return run_commands(dist)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 163, in run_commands
dist.run_commands()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 967, in run_commands
self.run_command(cmd)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/dist.py”, line 1229, in run_command
super().run_command(command)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 986, in run_command
cmd_obj.run()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py”, line 299, in run
self.run_command(‘build’)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/dist.py”, line 1229, in run_command
super().run_command(command)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 986, in run_command
cmd_obj.run()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py”, line 136, in run
self.run_command(cmd_name)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/dist.py”, line 1229, in run_command
super().run_command(command)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 986, in run_command
cmd_obj.run()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py”, line 79, in run
_build_ext.run(self)
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 339, in run
self.build_extensions()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 448, in build_extensions
self._build_extensions_serial()
File “/tmp/pip-build-env-y4fr5sh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 473, in _build_extensions_serial
self.build_extension(ext)
File “setup.py”, line 140, in build_extension
subprocess.check_call(cmake_build_args, # nosec
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/tmp/pip-build-env-y4fr5sh2/overlay/bin/cmake’, ‘–build’, ‘.’, ‘–config’, ‘Release’, ‘–parallel’, ‘4’]’ returned non-zero exit status 2.
ERROR: Failed building wheel for couchbase
Failed to build couchbase
ERROR: Could not build wheels for couchbase which use PEP 517 and cannot be installed directly
This was a virgin ubuntu system with Python 3.9 installed.
Something must be missing but I don’t know what. Can someone please assist me in correcting the omission.
We’re an enterprise customer.