NishantTharani / LogSeqToObsidian

Some tools to help move my notes from LogSeq to Obsidian
101 stars 15 forks source link

Assertion Error Line 330 #10

Closed willettjf closed 6 months ago

willettjf commented 6 months ago

Can anyone help diagnose this error?

Traceback (most recent call last): File "~/Desktop/convert_notes.py", line 330, in assert os.path.exists(old_base) and os.path.isdir(old_base) AssertionError

NishantTharani commented 6 months ago

HI @willettjf - that error message indicates that whatever you supplied as the path to your logseq graph either does not exist, or is not a valid directory. Were you able to solve the issue? Is it possible that you made a mistake when supplying the path as an argument?

PS I replaced this opaque message with a more informative error message, thanks for being the first person to bring this up :)

willettjf commented 6 months ago

Thanks! I did have an error in the directory. Tried again and ran into one more problem.

Line 346: os.makedirs(new_base, exist_ok=False)

Changed to True, and it worked.