ECDICT
ECDICT copied to clipboard
export_stardict 方法写文件错误
Python 3.7.5
Source code
import stardict
import dictutils
dictionary = stardict.open_dict('ecdict.mini.csv')
dictutils.generator.compile_stardict(dictionary, 'sd', 'sd')
Error
Traceback (most recent call last):
File "/Users/jinyuliu/workspace/ECDICT/dictutils.py", line 1062, in <module>
generator.compile_stardict(dictionary, 'sd', 'sd')
File "/Users/jinyuliu/workspace/ECDICT/dictutils.py", line 203, in compile_stardict
stardict.tools.export_stardict(out, filename, title)
File "/Users/jinyuliu/workspace/ECDICT/stardict.py", line 1372, in export_stardict
f3.write("StarDict's dict ifo file\nversion=2.4.2\n")
TypeError: a bytes-like object is required, not 'str'
自己改一下啊,这个函数里 py2 代码还没改干净。
不是,老板,你做的东西很好,开源出来也很棒,我用了这段代码才发现的错误,我自己当然是改过了,还有别的问题所以提不提PR再说,可是 issue这里不就是报问题的地方吗,我发现了个bug提个issue咋感觉还被嫌弃了呢?说起来这也能算做是一点微不足道的贡献不是?
On Tue, Jul 26, 2022 at 12:56 AM Linwei @.***> wrote:
自己改一下啊,这个函数里 py2 代码还没改干净。
— Reply to this email directly, view it on GitHub https://github.com/skywind3000/ECDICT/issues/91#issuecomment-1195137065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFR2LFCE2LRAOB655VU53VV6K2BANCNFSM54UAKIBQ . You are receiving this because you authored the thread.Message ID: @.***>
-- Simon J. Liu 刘金雨/云涛 Mobile: +61 4099 619 555 Email/MSN/GTalk: @.***
你多心了,没有半点嫌弃的意思,最近我比较忙,仅此而已,可能要等比较久才有空看, 所以你着急用的话,建议自己立马改一下。