sv99 / lsdreader

decompile Lingvo LSD dictionary to DSL
MIT License
93 stars 18 forks source link

TypeError: write() argument must be str, not bytes #12

Closed pecheny closed 1 year ago

pecheny commented 5 years ago

Following lines at lsdreader.py :

if sys.platform.startswith("win"):
    sys.stdout = codecs.getwriter('utf-8')(sys.stdout)

cause given error for me. Python 3.7.2 / Win10 x64 Wiping those lines out fixes the issue.

Andrew-Archer commented 1 year ago

Same behavior on Win 11 Python 3.11.0. Suggested fix works perfect. Thank you, @pecheny !