January 25, 2022, 4:30pm
I upgraded my sdk version from 2.5 to 3.2 using below command in Anaconda Prompt
“python -m pip install couchbase==3.2 --upgrade”
installation is successful but while doing “import couchbase” I’m getting the below error
ImportError: DLL load failed: %1 is not a valid Win32 application.
I use windows 10
anaconda version 4.5.4
output of python -c “import sys;print(sys.version)” is as below
system version 3.6.5
libcouchbase was not installed previously
Anyone please help me resolve this issue.
January 26, 2022, 12:28am
@Kratos - The information provided seems incomplete. Can you please provide the output of the command following command? I have pasted below that what I would expect to see.
python -c "import sys;print(sys.version);print(sys.path)"
(C:\ProgramData\Anaconda3) C:\Users\Administrator>python -c "import sys;print(sys.version);print(sys.path)"
3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]
['', 'C:\\ProgramData\\Anaconda3\\python36.zip', 'C:\\ProgramData\\Anaconda3\\DLLs', 'C:\\ProgramData\\Anaconda3\\lib', 'C:\\ProgramData\\Anaconda3', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\Sphinx-1.5.6-py3.6.egg', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\Pythonwin']
How did you previously install the 2.5.x Python SDK? libcouchbase was not built in place and I believe there are only wheels for Python >= 3.7.
Also, can you show the entire output of the error? I would expect there should be a stack trace as well.