Python SDK 3.0 installation problem

I’m unable to install python sdk 3.0 on windows 10 with python 3.8 and latest pip version. Followed the instructions here. https://docs.couchbase.com/python-sdk/3.0/hello-world/start-using-sdk.html

I don’t have microsoft build environment and it is not a possibility either. Does Couchbase python lib work independently of microsoft build tools? Can it be installed as stated in the link above or is there a special process which is not documented here?
What environment do I need or changes to make given my constraints? Help is welcome and appreciated.

I don’t get the constraints of posting, new users can’t upload anything, not even an error log!

The error log is here.

C:>pip install couchbase
Collecting couchbase
// Text clipped here due to posting constraints
– Configuring done
– Generating done
CMake Warning:
Manually-specified variables were not used by the project:

  LCB_NO_MOCK
  LCB_NO_SSL
  PYTHON_EXECUTABLE
  PYTHON_INCLUDE_DIR

– Build files have been written to: C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release
Microsoft ® Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright © Microsoft Corporation. All rights reserved.

Build started 10-Jul-20 11:11:38 PM.
1>Project “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj” on node 1 (default targets).
1>Project “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj” (1) is building “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ZERO_CHECK.vcxproj” (2) on node 1 (default targets).
2>PrepareForBuild:
Creating directory “Win32\Release\ZERO_CHECK”.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ZERO_CHECK.vcxproj]
Creating directory “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release”.
Creating directory “Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog”.
InitializeBuildStatus:
Creating “Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
CustomBuild:
Checking Build System
FinalizeBuildStatus:
Deleting file “Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”.
Touching “Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”.
2>Done Building Project “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ZERO_CHECK.vcxproj” (default targets).
1>Project “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj” (1) is building “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj” (3) on node 2 (default targets).
3>PrepareForBuild:
Creating directory “Win32\Release\libcouchbase_src”.
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
Creating directory “Win32\Release\libcouchbase_src\libcouchbase_src.tlog”.
InitializeBuildStatus:
Creating “Win32\Release\libcouchbase_src\libcouchbase_src.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
ComputeCustomBuildOutput:
Creating directory “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src-prefix\src\libcouchbase_src-stamp\Release”.
Creating directory “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\CMakeFiles\Release”.
CustomBuild:
Creating directories for ‘libcouchbase_src’
Building Custom Rule C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/CMakeLists.txt
Performing download step (download, verify and extract) for ‘libcouchbase_src’
– Downloading…
dst=‘C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release/libcouchbase_src-prefix/src/3.0.2.zip’
timeout=‘none’
– Using src=‘https://github.com/couchbase/libcouchbase/archive/3.0.2.zip
– [download 100% complete]
– Downloading… done
– extracting…
src=‘C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release/libcouchbase_src-prefix/src/3.0.2.zip’
dst=‘C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release/libcouchbase_src-prefix/src/libcouchbase_src’
– extracting… [tar xfz]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/configure.pl” -> “cmake/configure”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics-deferred/cJSON.c” -> “…/…/contrib/cJSON/cJSON.c”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics-deferred/cJSON.h” -> “…/…/contrib/cJSON/cJSON.h”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics-ingest/cJSON.c” -> “…/…/contrib/cJSON/cJSON.c”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics-ingest/cJSON.h” -> “…/…/contrib/cJSON/cJSON.h”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics/cJSON.c” -> “…/…/contrib/cJSON/cJSON.c”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/analytics/cJSON.h” -> “…/…/contrib/cJSON/cJSON.h”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/minimal/cJSON.c” -> “…/…/contrib/cJSON/cJSON.c”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/minimal/cJSON.h” -> “…/…/contrib/cJSON/cJSON.h”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/tracing/cJSON.c” -> “…/…/contrib/cJSON/cJSON.c”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
3>cmake -E tar : warning : skipping symbolic link “libcouchbase-3.0.2/example/tracing/cJSON.h” -> “…/…/contrib/cJSON/cJSON.h”. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
– extracting… [analysis]
– extracting… [rename]
– extracting… [clean up]
– extracting… done
No update step for ‘libcouchbase_src’
No patch step for ‘libcouchbase_src’
Performing configure step for ‘libcouchbase_src’
“no ref required”
“in C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release/Release/lcb_build”
– Selecting Windows SDK version to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:27 (project):
Failed to run MSBuild command:

           MSBuild.exe

         to get the value of VCTargetsPath:

           Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
           Copyright (C) Microsoft Corporation. All rights reserved.

           Build started 10-Jul-20 11:11:48 PM.
           Project "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj" on node 1 (default targets).
   3>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj] [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
           Done Building Project "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

           Build FAILED.

           "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj" (default target) (1) ->
           (PlatformPrepareForBuild target) ->
   3>C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj] [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]

               0 Warning(s)
               1 Error(s)

           Time Elapsed 00:00:01.27


         Exit code: 1



       -- Configuring incomplete, errors occurred!
       See also "C:/Users/Albert/AppData/Local/Temp/pip-install-xkmj6sf8/couchbase/build/temp.win32-3.8/Release/Release/lcb_build/CMakeFiles/CMakeOutput.log".
   3>Done Building Project "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj" (default targets) -- FAILED.
   1>Done Building Project "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj" (default target) (1) ->
     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ZERO_CHECK.vcxproj" (default target) (2) ->
     (PrepareForBuild target) ->
       C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ZERO_CHECK.vcxproj]


     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj" (default target) (1) ->
     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj" (default target) (3) ->
       C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]


     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj" (default target) (1) ->
     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj" (default target) (3) ->
     (CustomBuild target) ->
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/configure.pl" -> "cmake/configure". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics-deferred/cJSON.c" -> "../../contrib/cJSON/cJSON.c". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics-deferred/cJSON.h" -> "../../contrib/cJSON/cJSON.h". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics-ingest/cJSON.c" -> "../../contrib/cJSON/cJSON.c". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics-ingest/cJSON.h" -> "../../contrib/cJSON/cJSON.h". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics/cJSON.c" -> "../../contrib/cJSON/cJSON.c". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/analytics/cJSON.h" -> "../../contrib/cJSON/cJSON.h". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/minimal/cJSON.c" -> "../../contrib/cJSON/cJSON.c". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/minimal/cJSON.h" -> "../../contrib/cJSON/cJSON.h". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/tracing/cJSON.c" -> "../../contrib/cJSON/cJSON.c". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       cmake -E tar : warning : skipping symbolic link "libcouchbase-3.0.2/example/tracing/cJSON.h" -> "../../contrib/cJSON/cJSON.h". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]


     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\ALL_BUILD.vcxproj" (default target) (1) ->
     "C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj" (default target) (3) ->
     (CustomBuild target) ->
       C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj] [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]
       C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\Release\lcb_build\CMakeFiles\3.17.3\VCTargetsPath.vcxproj] [C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\temp.win32-3.8\Release\libcouchbase_src.vcxproj]

  13 Warning(s)
  2 Error(s)

Time Elapsed 00:00:11.10
set base as [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
self.base is [‘build\temp.win32-3.8’, ‘Release’]
got rpaths [’$ORIGIN’, ‘build\temp.win32-3.8\Release\install\lib\Release’]
set base as [‘build\temp.win32-3.8’, ‘Release’]
LIBDIR None, LIBPL None
fpath does not exist
fpath does not exist
fpath c:\python\lib\libpython3.8.dylib does not exist
fpath c:\python\python38-32\include…\lib does not exist
Launching build with env: {‘ALLUSERSPROFILE’: ‘C:\ProgramData’, ‘APPDATA’: ‘C:\Users\Albert\AppData\Roaming’, ‘CHOCOLATEYINSTALL’: ‘C:\ProgramData\chocolatey’, ‘CHOCOLATEYLASTPATHUPDATE’: ‘132291835235269837’, ‘COMMONPROGRAMFILES’: ‘C:\Program Files (x86)\Common Files’, ‘COMMONPROGRAMFILES(X86)’: ‘C:\Program Files (x86)\Common Files’, ‘COMMONPROGRAMW6432’: ‘C:\Program Files\Common Files’, ‘COMPUTERNAME’: ‘PB2I9664’, ‘COMSPEC’: ‘C:\WINDOWS\system32\cmd.exe’, ‘CONFIGSETROOT’: ‘C:\WINDOWS\ConfigSetRoot’, ‘DRIVERDATA’: ‘C:\Windows\System32\Drivers\DriverData’, ‘FPS_BROWSER_APP_PROFILE_STRING’: ‘Internet Explorer’, ‘FPS_BROWSER_USER_PROFILE_STRING’: ‘Default’, ‘HOMEDRIVE’: ‘C:’, ‘HOMEPATH’: ‘\Users\Albert’, ‘LOCALAPPDATA’: ‘C:\Users\Albert\AppData\Local’, ‘LOGONSERVER’: ‘\\PB2I9664’, ‘MOZ_PLUGIN_PATH’: ‘C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\’, ‘NUMBER_OF_PROCESSORS’: ‘4’, ‘ONEDRIVE’: ‘C:\Users\Albert\OneDrive’, ‘OS’: ‘Windows_NT’, ‘PATH’: ‘C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Scripts;C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\normal\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;%Program Files%\nodejs;%AppData%\npm;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\VisualSVN Server\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files (x86)\MAVProxy;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files\nodejs\;C:\Program Files (x86)\PuTTY\;D:\Program Files\MATLAB\R2019b\runtime\win64;D:\Program Files\MATLAB\R2019b\bin;C:\Python\Python38-32\Scripts\;C:\Python\Python38-32\;C:\Users\Albert\AppData\Local\Microsoft\WindowsApps;C:\Users\Albert\AppData\Roaming\npm;C:\Program Files\CMake\bin’, ‘PATHEXT’: ‘.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC’, ‘PROCESSOR_ARCHITECTURE’: ‘x86’, ‘PROCESSOR_ARCHITEW6432’: ‘AMD64’, ‘PROCESSOR_IDENTIFIER’: ‘Intel64 Family 6 Model 78 Stepping 3, GenuineIntel’, ‘PROCESSOR_LEVEL’: ‘6’, ‘PROCESSOR_REVISION’: ‘4e03’, ‘PROG27B48B2C050’: ‘1’, ‘PROGRAMDATA’: ‘C:\ProgramData’, ‘PROGRAMFILES’: ‘C:\Program Files (x86)’, ‘PROGRAMFILES(X86)’: ‘C:\Program Files (x86)’, ‘PROGRAMW6432’: ‘C:\Program Files’, ‘PROMPT’: ‘$P$G’, ‘PSMODULEPATH’: ‘C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\VisualSVN Server\PowerShellModules’, ‘PUBLIC’: ‘C:\Users\Public’, ‘SESSIONNAME’: ‘Console’, ‘SYSTEMDRIVE’: ‘C:’, ‘SYSTEMROOT’: ‘C:\WINDOWS’, ‘TEMP’: ‘C:\Users\Albert\AppData\Local\Temp’, ‘TMP’: ‘C:\Users\Albert\AppData\Local\Temp’, ‘USERDOMAIN’: ‘PB2I9664’, ‘USERDOMAIN_ROAMINGPROFILE’: ‘PB2I9664’, ‘USERNAME’: ‘Albert’, ‘USERPROFILE’: ‘C:\Users\Albert’, ‘VBOX_MSI_INSTALL_PATH’: ‘C:\Program Files\Oracle\VirtualBox\’, ‘VISUALSVN_SERVER’: ‘C:\Program Files\VisualSVN Server\’, ‘WINDIR’: ‘C:\WINDOWS’, ‘PLAT’: ‘win32’, ‘PIP_REQ_TRACKER’: ‘C:\Users\Albert\AppData\Local\Temp\pip-req-tracker-wrj4brd1’, ‘PYTHONNOUSERSITE’: ‘1’, ‘PYTHONPATH’: ‘C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\site’, ‘PEP517_BUILD_BACKEND’: ‘setuptools.build_meta:legacy’, ‘CXXFLAGS’: ’ -DPYCBC_LCB_API=0x02FF04 -DVERSION_INFO=\“3.0.1\”’, ‘CFLAGS’: ’ -DPYCBC_LCB_API=0x02FF04’}, build_args: [’–config’, ‘Release’, ‘–’, ‘/m’], cmake_args: [’-DPYCBC_LCB_API=0x02FF04’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\lib.win32-3.8\couchbase_core’, ‘-DPYTHON_EXECUTABLE=c:\python\python38-32\python.exe’, ‘-DPYTHON_INCLUDE_DIR=c:\python\python38-32\include’, ‘-DHYBRID_BUILD=TRUE’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\build\lib.win32-3.8\couchbase_core’, ‘-DLCB_NO_MOCK=1’, ‘-DLCB_NO_SSL=1’, ‘-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON’]
Traceback (most recent call last):
File “c:\python\python38-32\lib\site-packages\pip_vendor\pep517_in_process.py”, line 280, in
main()
File “c:\python\python38-32\lib\site-packages\pip_vendor\pep517_in_process.py”, line 263, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “c:\python\python38-32\lib\site-packages\pip_vendor\pep517_in_process.py”, line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools\build_meta.py”, line 211, in build_wheel
return self._build_with_temp_dir([‘bdist_wheel’], ‘.whl’,
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools\build_meta.py”, line 197, in _build_with_temp_dir
self.run_setup()
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools\build_meta.py”, line 248, in run_setup
super(BuildMetaLegacyBackend,
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools\build_meta.py”, line 142, in run_setup
exec(compile(code, file, ‘exec’), locals())
File “setup.py”, line 86, in
setup(
File "C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools_init
.py", line 165, in setup
return distutils.core.setup(**attrs)
File “c:\python\python38-32\lib\distutils\core.py”, line 148, in setup
dist.run_commands()
File “c:\python\python38-32\lib\distutils\dist.py”, line 966, in run_commands
self.run_command(cmd)
File “c:\python\python38-32\lib\distutils\dist.py”, line 985, in run_command
cmd_obj.run()
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\wheel\bdist_wheel.py”, line 223, in run
self.run_command(‘build’)
File “c:\python\python38-32\lib\distutils\cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “c:\python\python38-32\lib\distutils\dist.py”, line 985, in run_command
cmd_obj.run()
File “c:\python\python38-32\lib\distutils\command\build.py”, line 135, in run
self.run_command(cmd_name)
File “c:\python\python38-32\lib\distutils\cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “c:\python\python38-32\lib\distutils\dist.py”, line 985, in run_command
cmd_obj.run()
File “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\cmake_build.py”, line 61, in run
build_ext.run(self)
File “C:\Users\Albert\AppData\Local\Temp\pip-build-env-za8y7aqr\overlay\Lib\site-packages\setuptools\command\build_ext.py”, line 87, in run
_build_ext.run(self)
File “c:\python\python38-32\lib\distutils\command\build_ext.py”, line 340, in run
self.build_extensions()
File “c:\python\python38-32\lib\distutils\command\build_ext.py”, line 449, in build_extensions
self._build_extensions_serial()
File “c:\python\python38-32\lib\distutils\command\build_ext.py”, line 474, in _build_extensions_serial
self.build_extension(ext)
File “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\cbuild_config.py”, line 228, in build_extension
self.prep_build(ext)
File “C:\Users\Albert\AppData\Local\Temp\pip-install-xkmj6sf8\couchbase\cmake_build.py”, line 162, in prep_build
subprocess.check_call([‘cmake’, ‘–build’, ‘.’] + build_args,
File “c:\python\python38-32\lib\subprocess.py”, line 364, 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 anybody guide, how to resolve this issue?

Thanks.

Hi @gkashyap, welcome to the community and sorry for the trouble you are experiencing. It looks like you are running the 32-bit version of Python, We don’t officially support that for SDK3, although it may be buildable with MSVC14. I would suggest upgrading to the 64 bit version of Python if possible. Otherwise please talk to @AV25242 , Support or Sales about this for consideration.

Hi @ellis.breen,
I never realized that python installation was 32 bit until I had a look after your response. Re-installation with suggested changes worked like a breeze.

Thank you so much for the response, you’ve made my day! :smiley:

Have a lovely day!
G. Kashyap

1 Like

Easily done! Glad to be of service!