[Xapian-discuss] Import error on Windows

Menard, Daniel Daniel.Menard at ehesp.fr
Fri Oct 15 08:53:55 BST 2010


I don't know about python, but with php, zlib1.dll must be in the path of the system.
Try adding the xapian directory to the path or (this is what I did), copy zlib1.dll to c:\windows\system32

Cheers,

Daniel
> -----Message d'origine-----
> De : xapian-discuss-bounces at lists.xapian.org [mailto:xapian-discuss-
> bounces at lists.xapian.org] De la part de David Sauve
> Envoyé : jeudi 14 octobre 2010 22:03
> À : Xapian Discussion
> Objet : [Xapian-discuss] Import error on Windows
> 
> 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?
> 
> David



More information about the Xapian-discuss mailing list