-
Notifications
You must be signed in to change notification settings - Fork 338
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
[bug] Error Installing high_quality_translation Validator #1167
Comments
Hi @OrenRachmil, while not obvious from the error text, I believe the root issue here is a transient dependency of this validator requires |
@OrenRachmil, to successfully install this validator on windows I had to setup multiple c++ build tools including cmake and g++. I think the easiest way to get all the necessary tools installed and configured correctly is to install Visual Studio Community edition along with the "Desktop development with C++" workload. If this seems excessive, it's because it is. The culprit is a package from Google called sentencepiece that unbabel-comet (a dependency of this validator) depends on. An potential alternative to setting up these build tools, is to pre-install a wheel as described here before installing the validator. It should be noted that this issue is only present in sentencepiece 0.1.x which unbabel-coment has pinned in it's pyproject.toml. The unbabel-comet repository does have a user submitted issue to support sentencepiece 0.2.x which does not have these install requirements. |
@CalebCourier Thank you very much for your prompt response and effort. |
One last note on this issue: It appears that the additional dependencies (C++ build tools) are only needed in versions of python 3.12 and above since there are wheels published for the python versions below this and thus the wheel does not need to be built on the client machine. This leaves an additional option of downgrading python to 3.11 or below to avoid needing to setup the C++ tools mentioned here like Since there are workarounds documented here, and the core issue is not with our library or even the validator developed by our partners, I'm going to close this issue for now. |
Describe the bug
I encountered multiple errors while attempting to install the high_quality_translation validator from Guardrails Hub, Below are the details of the issue.
Steps to reproduce the behavior:
guardrails hub install hub://guardrails/high_quality_translation
Expected behavior
Library version:
guardrails-ai 0.6.0
Additional context
Python Version: 3.12
Windows 11
The text was updated successfully, but these errors were encountered: