currently we are using <faiss-cpu> package in poet...
# general
b
currently we are using faiss-cpu package in poetry via
faiss-cpu = "1.7.4"
but when I'm running
:pants test ::
I get
Copy code
import faiss
E   ModuleNotFoundError: No module named 'faiss'
1
n
Since the package name does not match its import name, you need to use module_mapping in order for Pants to understand it.
1
b
If you have a moment, we'd appreciate if you could submit a pull request adding it to the default mappings pants has internally, so that it's smoother for future users (and so that you can simplify your config once you upgrade to a version with it): https://github.com/pantsbuild/pants/blob/f51e54ebb2d698b7bd6b12d9967ebb1b03e9a95a/src/python/pants/backend/python/dependency_inference/default_module_mapping.py#L144-L145 Thanks!
b
will do
🙏 1
i did notice typing-extensions work today without mapping to typing_extensions though. not sure
b
thank you!