Silense noisy warnings for pyicu
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)
Not seen anymore as reported by @AyanSinhaMahapatra ... moving to later and lower priority
This is fixed and not seen anymore, closing.
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
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.
- Using
warnings.simplefilter("ignore")it will filter and ignore all the warnings - Using
with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=ICUWarning)this will ignore all the ICUwarning - Using
warnings.simplefilter("ignore", ICUWarning)in global scope of summary
What should I do.
Also can you please assign this issue to me.