file /home/debian/.config/ibus/rime/luna_pinyin.userdb/000005.ldb
/home/debian/.config/ibus/rime/luna_pinyin.userdb/000005.ldb: LevelDB table data
xxd and vim can open it,it is not empty.I want to read it with plyvel:
import plyvel
dbfile = "/home/debian/.config/ibus/rime/luna_pinyin.userdb/000005.ldb"
db = plyvel.DB(dbfile)
The error info:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "plyvel/_plyvel.pyx", line 247, in plyvel._plyvel.DB.__init__
File "plyvel/_plyvel.pyx", line 88, in plyvel._plyvel.raise_for_status
plyvel._plyvel.IOError: b'IO error: /home/debian/.config/ibus/rime/luna_pinyin.userdb/000005.ldb/LOCK: Not a directory'
Check 000005.ldb with file command:
xxd
andvim
can open it,it is not empty.I want to read it withplyvel
:The error info:
how can read it then?