-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: Textractor pipeline is not available - install "pipeline" extra to enable #646
Comments
What environment are you running on? I would rebuild your virtual environment and reinstall with |
@berkgungor are you trying to run the colab script from here ? if you are running on MacOS with zsh, then you might need to change the command from to The error message you're encountering in the Z shell (zsh) is likely due to the way zsh handles square brackets. In zsh, square brackets are used for pattern matching, and when they appear in a command, zsh tries to match them to file names. If it doesn't find any matching files, you get the no matches found error. |
@davidmezzetti i run the code in my venv that i use for all other llm projects so rebuilding is not the best option for me, but it works in colab. I think one of the llm libraries such as transformers, langhchain etc. might affect txtai. @Lanznx i am on a windows cuda env. |
Following up on this, Apache Tika is a Java library and requires Java to be installed. If you install Java, does this solve the issue? I will update the FAQ and error message once confirmed. |
Thank you @Lanznx, after researching this further, I believe escaping the brackets is the solution for both macOS zsh and anyone using Windows Powershell. |
Manually installing 3 packages worked for me (on Windows): These are used in |
When i run the code block below, it gives error :
from txtai.pipeline import Textractor
textractor = Textractor()
ImportError: Textractor pipeline is not available - install "pipeline" extra to enable
Note :
pip install txtai[pipeline]
did not workThe text was updated successfully, but these errors were encountered: