Back

Mighty Morphin Morphology

#49
vosmiura Wrote:
vix86 Wrote:Traceback (most recent call last):
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\util.py", line 63, in
ed.connect( a, SIGNAL('triggered()'), lambda e=ed: doOnSelection( e, overviewMsg, progMsg, preF, perF, postF ) )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\util.py", line 54, in doOnSelection
postF( st )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\exportMorphemes.py", line 24, in post
m.mergeFiles( st['filePath'], util.knownDbPath, util.knownDbPath )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\morphemes.py", line 120, in mergeFiles
a, b = loadDb( aPath ), loadDb( bPath )
File "C:\Users\vix\AppData\Roaming\.anki\plugins\morph\morphemes.py", line 60, in loadDbU
buf = open( path, 'rb' ).read().decode('utf-8')
IOError: [Errno 2] No such file or directory: 'C:\\Users\\vix\\AppData\\Roaming\\.anki\\plugins\\morph\\dbs\\known.db'

Edit: Not Python's fault. There just simply isn't a 'known.db' file there.
Yep, there's a little mishandling in that case.

Workaround is to export morphenes to known.db first.
It looks like you said 'Yes' when it asked if you wanted to merge with known.db and so it failed since there's no known.db to merge with- that's why the instructions say to click 'No' when making your initial known.db.
Reply

Messages In This Thread