I’ve installed Couchbase Server on a Windows 7 64bit laptop along with the Python libs, etc in line with the setup guide, however I am getting the following error when importing Couchbase in my Python test script:
DLL load failed: The specified module could not be found.
Can anyone please point me in the direction of where it has gone wrong?
The trace log shows it is pulling in various Couchbase files, so I was thinking this might be a problem with the Python lib interacting with libcouchbase?
In case it was a problem with the installer, I also downloaded Visual Studio Express so I could try building libcouchbase from source using NMAKE, but still no joy.
Couchbase Server and the web management interface works perfectly, it’s just the Python integration that fails.
My environment:
Python 3.3
Couchbase Server 2.2
Python SDK 1.1 64bit
Can you please post your python test script and full error for me to take a look at?
I would recommend pasting them into: http://pastebin.com documents, but make sure you set the ‘Paste Exposure’ setting to Unlisted. Then click on the ‘Raw’ link, and paste the URL from that here.
Or alternatively, make a Gist on Github and send me the link.
It’s a very simple script as you can see. os and sys are being imported for other purposes, testing manipulating the sys.path to see if that fixed anything, but it didn’t, so the associated code was removed.
I’ll try to reproduce it. You MAY need the CRT - though that’d be odd considering that one would hope it’s bundled within the Python binary.
Now that I look at it too though, it would seem that Python 3.3 is supposed to be building against VC10, whereas in these logs, it shows using the VC9 libcouchbase version. I’m going to investigate some more.
I think I have an idea what the problem is. The only thing is I’m not sure what the correct solution is. There doesn’t seem to be any definitive info out there saying what VS version Python wants for 3.3 x64
Once I figure this out, I’ll generate a binary for 1.1.0 on Py3.3/x64. You can ping me on #libcouchbase in IRC (on freenode) if you want all the gory details…
Sorry for the trouble. Anyway I fixed the build problem. Now the only thing left is to figure out how to make the build machine generate the one for 1.1.0