Filenotfounderror: The system cannot find the file specified: #202
-
Hi all - I encountered the above error, probably because I had created a folder in Chinese characters. Even after I deleted the folder, reinstall khoj, it still somehows detect the presence of the folder and failed to run the app. Any idea to resolve? UPDATE: FileNotFoundError: [WinError 2] The system cannot find the file specified: 'G:\My_Drive' Below is the full error message: --- Logging error --- During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hey @dcalexchan, based on the logs you shared, it seems like khoj is unable to create the configuration folder to save the khoj configuration, index files to.
|
Beta Was this translation helpful? Give feedback.
-
@debanjum My folder obsidian, I just checked, exists on G:\My Drive\Obsidian. I am not sure if the underscore cause the error, but my question would be if I can "ask Khoj not to look at the address", or just delete from the record that it should be the correct address. I have also made a test code to create folder by python it seems to be able to create file if I remove the underscore. So my answer is I do not need admin permissions. Therefore, my question is again whether if I can "ask Khoj not to look at the address"/clean the log of address? |
Beta Was this translation helpful? Give feedback.
There are two ways you can update the khoj config to look at
G:\My Drive\Obsidian
and notG:\My_Drive\Obsidian
G:\My Drive\Obsidian
). The plugin will automatically configure the khoj backend to only index the new Vaultinput-filter
field under thecontent-type > markdown
section inkhoj.yml
file atC:\Users\Alex\.khoj\khoj.yml
to use the new vault path. (It'll look something likeG:/My Drive/Obsidian/**/*.md
I believe on Windows)Let me know if that fixes your issue