Hi,
I am following the instructions from https://docs.couchbase.com/python-sdk/3.0/hello-world/start-using-sdk.html to install sdk 3 of couchbase on my Windows machine but facing issue while running “python -m pip install couchbase” command.
This is the output error log after I run pip install command for couchbase:
random-things/c3-venv/Scripts/python.exe’]
Traceback (most recent call last):
File “C:\Users\dagarwal\Flipt-Projects\random-things\c3-venv\lib\site-packages\pip_vendor\pep517_in_process.py”, line 280, in
main()
File “C:\Users\dagarwal\Flipt-Projects\random-things\c3-venv\lib\site-packages\pip_vendor\pep517_in_process.py”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “C:\Users\dagarwal\Flipt-Projects\random-things\c3-venv\lib\site-packages\pip_vendor\pep517_in_process.py”, line 205, in build_wheel
metadata_directory)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools\build_meta.py”, line 212, in build_wheel
wheel_directory, config_settings)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools\build_meta.py”, line 197, in build_with_temp_dir
self.run_setup()
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools\build_meta.py”, line 249, in run_setup
self).run_setup(setup_script=setup_script)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools\build_meta.py”, line 142, in run_setup
exec(compile(code, file, ‘exec’), locals())
File “setup.py”, line 94, in
**setup_kw
File "C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools_init.py", line 165, in setup
return distutils.core.setup(**attrs)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\core.py”, line 148, in setup
dist.run_commands()
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py”, line 955, in run_commands
self.run_command(cmd)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py”, line 974, in run_command
cmd_obj.run()
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\wheel\bdist_wheel.py”, line 223, in run
self.run_command(‘build’)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py”, line 974, in run_command
cmd_obj.run()
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\command\build.py”, line 135, in run
self.run_command(cmd_name)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py”, line 974, in run_command
cmd_obj.run()
File “C:\Users\dagarwal\AppData\Local\Temp\pip-install-9hqvelgo\couchbase\cmake_build.py”, line 62, in run
build_ext.run(self)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-build-env-gecl74h1\overlay\Lib\site-packages\setuptools\command\build_ext.py”, line 87, in run
_build_ext.run(self)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\command\build_ext.py”, line 339, in run
self.build_extensions()
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\command\build_ext.py”, line 448, in build_extensions
self._build_extensions_serial()
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\distutils\command\build_ext.py”, line 473, in _build_extensions_serial
self.build_extension(ext)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-install-9hqvelgo\couchbase\cbuild_config.py”, line 257, in build_extension
self.prep_build(ext)
File “C:\Users\dagarwal\AppData\Local\Temp\pip-install-9hqvelgo\couchbase\cmake_build.py”, line 183, in prep_build
cwd=self.build_temp)
File “C:\Users\dagarwal\AppData\Local\Programs\Python\Python36\lib\subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–config’, ‘Release’, ‘–’, ‘/m’]’ returned non-zero exit status 1.
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
Can someone please help with this?
I am using Python 3.6.8
PS: I have upgraded pip, setuptools and wheel package as mentioned in the documentation.