Mailman3 - from Whoosh to Xapian
![](https://secure.gravatar.com/avatar/e5e5e5ff89d1996c8318d14908794cf9.jpg?s=120&d=mm&r=g)
Hello!
My idea/plan is to replace Whoosh with Xapian. So far i have added this line inside settings.py: 'ENGINE': 'xapian_backend.XapianEngine', and installed pip package: pip install xapian-haystack
Put i think its not enough and im missing something. If i try to do use "mailman-web rebuild_index", then i get some error messages: File "/opt/mailman/venv/lib64/python3.9/site-packages/xapian_backend.py", line 23, in <module> import xapian ModuleNotFoundError: No module named 'xapian'
Any ideas what im missing ?
Br, Kimmo
![](https://secure.gravatar.com/avatar/8da339f04438d3fcc438e898cfe73c47.jpg?s=120&d=mm&r=g)
Kimmo L. writes:
import xapian
ModuleNotFoundError: No module named 'xapian'
I'm pretty sure this occurs when the Xapian application and its libraries are not installed. xapian-haystack is an adapter from C++ (or maybe C) to Python, it is not a complete installation of the Xapian package. See Requirements at
https://pypi.org/project/xapian-haystack/
Have you installed Xapian itself? If you have and still no luck, let us know. I know that many sites have successfully installed Xapian as the indexer for their Mailman instance.
Steve
![](https://secure.gravatar.com/avatar/8da339f04438d3fcc438e898cfe73c47.jpg?s=120&d=mm&r=g)
Kimmo L. writes:
import xapian
ModuleNotFoundError: No module named 'xapian'
I'm pretty sure this occurs when the Xapian application and its libraries are not installed. xapian-haystack is an adapter from C++ (or maybe C) to Python, it is not a complete installation of the Xapian package. See Requirements at
https://pypi.org/project/xapian-haystack/
Have you installed Xapian itself? If you have and still no luck, let us know. I know that many sites have successfully installed Xapian as the indexer for their Mailman instance.
Steve
participants (2)
-
Kimmo L.
-
Stephen J. Turnbull