-
Notifications
You must be signed in to change notification settings - Fork 355
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] Message: guardrails-cli[6204] , ERROR Failed to inspect #648
Comments
@musharaf-iqeqdigital Thanks for raising this issue! We're still investigating, but from what we can tell, this is a Windows specific encoding issue. We're working on a fix and will update here once we have something. |
@CalebCourier Thanks for your response! We're currently using Guardrails for a proof of concept (POC) and are keen to continue. Understanding that the issue may be Windows-specific, we appreciate any updates on the fix. Your assistance is invaluable to us in moving forward with our evaluation. |
@musharaf-iqeqdigital I'm still trying to replicate this issue, but in the meantime I do have a work-in-progress branch where any changes for this issue will go. You can see those changes here: #657 If you want to test out these changes as they're still under development you can install from this branch via I'll update here when I have any new findings. Thanks for your again patience! |
I was able to replicate this issue in a Windows environment. Going to test the above changes first, then move towards a solution. |
facing the same issue |
I had encountered part of this error |
@musharaf-iqeqdigital @RoshniRM @vivek-athina We've found the underlying cause of this error when running on Windows. In some of our Validator's README's there is a |
I managed to fix it by enabling UTF-8 in Windows. |
I'm facing the same error for this Validator - guardrails hub install hub://guardrails/toxic_language |
@mdhuzaifapatel We are working on updates on our side to mitigate this issue across all validators. In the meantime, you can work around this issue by enabling UTF-8 like @nicucalcea suggests. |
same issue i am facing in Ubuntu also |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
Describe the bug
I successfully installed Guardrails version 0.4.1 using the following command:
pip install "git+https://github.com/guardrails-ai/guardrails.git@main"
After configuring Guardrails, I attempted to install Guard PII with the following command:
guardrails hub install hub://guardrails/detect_pii
However, I encountered the following error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2192' in position 3463: character maps to
Additionally, the Guardrails CLI reported:
guardrails-cli[6204] ERROR Failed to inspect
To Reproduce
Steps to reproduce the behavior:
1- Install the guardrails <pip install "git+https://github.com/guardrails-ai/guardrails.git@main">
2- configure guardrails
3- Install Detect PII <guardrails hub install hub://guardrails/detect_pii>
Library version:
Version (0.4.1)
The text was updated successfully, but these errors were encountered: