prophet icon indicating copy to clipboard operation
prophet copied to clipboard

pip install guardrails getting this error

Open Pratekh opened this issue 10 months ago • 2 comments

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Vozon\AppData\Local\Temp\pip-install-8jfqfu6f\guardrails_e40e29184a5345c585925760a1fca596\setup.py", line 22, in long_description = fh.read() ^^^^^^^^^ File "C:\Users\Vozon\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 5620: character maps to [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Pratekh avatar Apr 15 '24 11:04 Pratekh

  1. from profanity_check import predict

  2. from guardrails.validators import Validator, EventDetail, register_validator

Pratekh avatar Apr 17 '24 14:04 Pratekh

What are the necessary pip & import cmd for above libs?

Pratekh avatar Apr 17 '24 15:04 Pratekh