Forums

whoosh version error

Hi, When I am trying to run a small program using whoosh which reads the whoosh index and gives the results, I am getting the error

whoosh.index.IndexVersionError: Can't read format -111

when I checked out what this error mean, it said Raised when you try to open an index using a format that the current version of Whoosh cannot read. That is, when the index you're trying to open is either not backward or forward compatible with this version of Whoosh.

So I have run the inde.version_in command on my whoosh index directory, I got the answer ((2, 5, 6), -111) which is the latest version.

If someone familiar with this stuff, please help me.

Thanks in advance, Ravindra

Hi Ravindra -- how is the index being generated? Is it possible that you're using different versions of Python for the index generation and for reading it?

I ran whoosh in my laptop and even in pythonanywhere console The whoosh version in your system is 2.4.1 The latest one is 2.5.6