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 xapianTraceback (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
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
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? Cheers Charlie> > David > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss >