Closed tedblizzard100 closed 2 years ago
Do you get this error every time you run kim.py? If so, can you try running kim.py with a search term that isolates down to 1 or 2 notes? Does that fail as well? Couple of thoughts come to mind:
If these don't work then try downloading kim again in another directory to see if that works.
Thank you @djsudduth I really appreciate your help. I updated to 0.4.3 and checked the settings as you spesified. I am getting a new error::
Enter a keyword search, label search or '--all' to convert Keep notes to md or '--x' to exit: ToObsidian Error in keep_query_convert() Conversion to markdown error - UnboundLocalError("local variable 'md_file' referenced before assignment") Could not excute KIM
Is this help identify the issue? What else can I do? Thank you so much for your help.
Sure @tedblizzard100 - after debugging this a bit, I see the error appears if your output_path
or media_path
in the config file has one of these issues:
See if you can just use the config defaults (mdfiles
under the kim install directory and media
under the mdfiles directory) and make sure they are writable. (so your directory layout should be ../(kim install directory)/mdfiles/media
)
Looks like I need to add some file/directory error handling to report the error better. I will add that.
@tedblizzard100 I also just want to verify - does this error occur if converting a single simple note that has a title, some text and no attached media (picture or drawing)?? (Just find a note that is unique for one word or just create one)
Thank you so much @djsudduth for your help. I am sure you are correct. It is a problem with my path. It is not even accessing the Google Keep data at the point because the error is instant. This is what I have in the config file does any of this look wrong (Note I am on windows):
[SETTINGS]
google_userid = <
Ok - I see the issue. Do this:
@djsudduth Thank you again for all your help.
This is my config: [SETTINGS] google_userid = myemailaddress@gmail.com output_path = 'C:/Users/tedbl/Google Drive/Second Brain/VBrainCV2/GoogleKeepNotes' media_path = 'media'
But I am still getting the same error: Enter a keyword search, label search or '--all' to convert Keep notes to md or '--x' to exit: ToObsidian Error in keep_query_convert() Conversion to markdown error - UnboundLocalError("local variable 'md_file' referenced before assignment") Could not excute KIM
Tey removing the quotes on 'media'
Yes, Thank you. both ways with and without quotes as indicated in number 4 above. Same error.
Ok, so you need to try the simple test - just use the KIM install directory and set the settings.cfg to the defaults of mdfiles and media. Make sure that works before altering any paths - then, evolve it from there. Meanwhile, I'll create a directory the same as yours and try to see where the issue is.
Ok, I did a test - remove all quotes from any of paths. I had the same errors you had any time I added single or double quotes. Once I removed them, it worked.
YES! It worked perfectly. Thank you so much @djsudduth for all your help.
Fantastic!!! Hope you enjoy it. The next version will be out in a couple of months. Adding bulleted Logseq markdown and import from Google Takeout (some of the features). Let me know if there are features you'd like to see.
I am getting this error: "local variable 'md_file' referenced before assignment" Is there any workaround - Please? Thank you