[Xapian-discuss] Import error on Windows
dnsauve at gmail.com
Fri Oct 15 14:26:50 BST 2010
I'm rather embarrassed to admit, I had the wrong version of the bindings installed. Your reply prompted me to go back and verify the version, and it turned out I had an older version. Removing that and installing the correct version corrected the issue.
On 2010-10-15, at 3:25 AM, Charlie Hull wrote:
> 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?
>> Xapian-discuss mailing list
>> Xapian-discuss at lists.xapian.org
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
More information about the Xapian-discuss