Garulf / Obsidian-Notes

Search Obsidian notes
43 stars 4 forks source link

PermissionError #33

Closed shurgbee closed 8 months ago

shurgbee commented 8 months ago

The plugin is unable to access my notes. I have made sure to use python v3.8.0 because it caused issues with other users but nothing changed.

Trace Log

``` Traceback (most recent call last): File "C:\Users\serag\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\lib\flox\launcher.py", line 44, in run results = request_method(*request_parameters) or self._results File "C:\Users\serag\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\lib\flox\__init__.py", line 131, in _query self.query(query) File "C:\Users\serag\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\plugin\main.py", line 38, in query context=[vault.id, str(note.path), note.checklists()] File "C:\Users\serag\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\plugin\obsidian.py", line 106, in checklists for line in self.content().splitlines(): File "C:\Users\serag\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\plugin\obsidian.py", line 85, in content with open(self.path, 'r', encoding='utf-8', errors='replace') as f: PermissionError: [Errno 13] Permission denied: 'C:\\Users\\serag\\OneDrive\\Documents\\Obsidian Vault\\Images\\AP Chem Videos Unit 1.md' ```

Garulf commented 8 months ago

Please check you have permission for that folder set to allow access.

This can't be fixed on the plugins side.

shurgbee commented 8 months ago

I found the issue, some of my folders ended with the name ".md" and the program recognized them as a file instead of a folder. I just had to change their names.

Garulf commented 8 months ago

I found the issue, some of my folders ended with the name ".md" and the program recognized them as a file instead of a folder. I just had to change their names.

Oh interesting, I never considered that I suppose?

shurgbee commented 8 months ago

This stack overflow page explains it pretty well and offers an easy solution to fix it.

Garulf commented 8 months ago

Oh yeah it's a simple fix.

I never considered a directory would be named with .md

May I ask why?

shurgbee commented 8 months ago

It's from my imported notes from OneNote