TA的每日心情 | 擦汗 2021-11-17 09:18 |
---|
签到天数: 79 天 [LV.6]常住居民II
解元
- 积分
- 2434
|
昨天系统出现问题,重新安装了转换词典的环境 又出现报错了
- python3 ~/Software/pyglossary/pyglossary.pyw -u cmd
- > Input file: /Users/vivian/Downloads/concise/concise_enhanced.mdx
- > Output file: /Users/vivian/Downloads/concise/concise
- > Output format: AppleDict
- > Select action (ENTER to convert):
复制代码
输出报错
- Try Brutal Force on Encrypted Key Blocks
- unhandled exception:
- Traceback (most recent call last):
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 104, in __init__
- self._key_list = self._read_keys()
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 362, in _read_keys
- key_block_info_list = self._decode_key_block_info(key_block_info)
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 148, in _decode_key_block_info
- assert(key_block_info_compressed[:4] == b'\x02\x00\x00\x00')
- AssertionError
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/Users/vivian/Software/pyglossary/pyglossary/glossary.py", line 854, in read
- reader.open(filename)
- File "/Users/vivian/Software/pyglossary/pyglossary/plugins/octopus_mdict_new/__init__.py", line 71, in open
- self._mdx = MDX(filename, self._encoding, self._substyle)
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 516, in __init__
- MDict.__init__(self, fname, encoding, passcode)
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 107, in __init__
- self._key_list = self._read_keys_brutal()
- File "/Users/vivian/Software/pyglossary/pyglossary/plugin_lib/readmdict.py", line 394, in _read_keys_brutal
- assert key_block_info[:4] == b'\x02\x00\x00\x00'
- AssertionError
- If you want to repeat this conversion later, you can use this command:
- pyglossary /Users/vivian/Downloads/concise/concise_enhanced.mdx /Users/vivian/Downloads/concise/concise --read-format=OctopusMdict --write-format=AppleDict
- Press Control + C to exit
- > Select action (ENTER to convert):
复制代码
- ❯ pip3 list
- Package Version
- -------------- -------
- beautifulsoup4 4.9.3
- html5lib 1.1
- lxml 4.6.3
- pip 21.2.4
- prompt-toolkit 3.0.20
- pycairo 1.20.1
- PyGObject 3.40.1
- python-lzo 1.12
- setuptools 57.0.0
- six 1.16.0
- soupsieve 2.2.1
- wcwidth 0.2.5
- webencodings 0.5.1
- wheel 0.36.2
复制代码
pygobject3 gtk+3 也安装了, 请问各位大神这是什么原因? |
|