[Xapian-discuss] Import error on Windows

Charlie Hull charlie at juggler.net
Fri Oct 15 11:25:01 BST 2010

On 14/10/2010 21:02, David Sauve wrote:
> Ok, got my corrupted binary issues sorted out by having someone download the file for me and forward me the extracted contents.  Bizarre, but fixed.
> Now, I'm running into another issue, this time with the Python bindings.  I've installed the MSVC distrib package and checked that site-packages has `xapian.py` and a folder called `xapian` with three files in it: `__init__py`, `_xapian.pyd` and `zlib1.dll`.
> If I try to `import xapian` I get a traceback indicating there was a problem loading a DLL:
>>>> import xapian
> Traceback (most recent call last):
>    File "<stdin>", line 1, in<module>
>    File "C:\Python27\lib\site-packages\xapian\__init__.py", line 6, in<module>
>      import _xapian
> ImportError: DLL load failed: The specified module could not be found.
> Any thoughts on where to go from here?
Hi David,

I maintain the Windows binaries so should be able to help.

I suspect it's a path problem: I'm assuming you're using the 1.2.3 
binaries as they're the only ones with 2.7 support. However the error 
message you report is a little confusing, as line 6 of __init__.py 
doesn't have the import _xapian statement.

Could you confirm which version of the bindings you're using?


> David
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss

More information about the Xapian-discuss mailing list