Mar-27-2024, 06:04 PM
The lsdreader dos not work later version of Python.
It's made a long time ago and the Python 3 compatibility they added is not testet good enough on Windows.
To make it work download Python 3.9(do not add to Path),go to Scripts folder and do
Open C:\Python39\Lib\
It's made a long time ago and the Python 3 compatibility they added is not testet good enough on Windows.
To make it work download Python 3.9(do not add to Path),go to Scripts folder and do
pip install lingvoreader
Open C:\Python39\Lib\
codecs.py
line 378 change to this.self.stream.write(data.decode()) # Add .decode()Teste that it works.
C:\Python39\Scripts λ lsdreader --help usage: lsdreader [-h] (-i INPUT | -a) [--header] [-o OUTDIR] [-c] [-v] [--version] Decode Lingvo lsd dictionary to dsl optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT Dictionary to decode -a, --all All dictionary in current directory --header Print dictionary header and exit -o OUTDIR, --outdir OUTDIR Output directory -c, --codecs print supported languages and their codes -v, --verbose --version show program's version number and exitCan not use newer version because they have frozen
codecs.py
into Python(python.exe).