scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Silense noisy warnings for pyicu

Open pombredanne opened this issue 3 years ago • 1 comments

See this when running SCTK latest develop: scancode-toolkit-master/venv/lib/python3.6/site-packages/fingerprints/cleanup.py:54: ICUWarning: Install 'pyicu' for better text transliteration. text = ascii_text(text)

pombredanne avatar Jun 10 '22 11:06 pombredanne

Not seen anymore as reported by @AyanSinhaMahapatra ... moving to later and lower priority

pombredanne avatar Aug 11 '22 15:08 pombredanne

This is fixed and not seen anymore, closing.

AyanSinhaMahapatra avatar Jan 04 '23 13:01 AyanSinhaMahapatra

I saw this again, this is happening when we use the --summary option due to the use of fingerprints.generate in the src/summarycode/summarizer.py.

See https://github.com/nexB/scancode-toolkit/issues/3016#issuecomment-1397144996

AyanSinhaMahapatra avatar Jan 19 '23 15:01 AyanSinhaMahapatra

hey, I am new to contributing. So, I need a little bit of help.

I have done some research and came to conclusion that the warning is generated by library Normality which is used in Fingerprints and it is here.

Also I have different solution based on it.

  1. Using warnings.simplefilter("ignore") it will filter and ignore all the warnings
  2. Using with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=ICUWarning) this will ignore all the ICUwarning
  3. Using warnings.simplefilter("ignore", ICUWarning) in global scope of summary

What should I do.

Also can you please assign this issue to me.

rritik772 avatar Jan 29 '23 05:01 rritik772