I have been battling with this error for quite some time, and am now hoping to get some help from the community’s wisdom… Any suggestion is greatly appreciated.
What I’m trying to do
I want to implement this blog’s process, and use Templater to create subsections for each of my calendar meetings in my daily notes. The approach discussed used terminal tool icalBuddy and the user functions in Templater to achieve this.
Things I have tried
I have successfully:
installed icalBuddy,
run the user function content in my terminal and get desired results,
fixed a number of other errors using Obsidian Console.
But now I am stuck with an " Error: spawn /usr/local/bin EACCES" error that I cannot solve. I know that this means that Obsidian is denied access to the folder, and I have granted full disk access to Obsidian and terminal (not sure if this is relevant but I did it because I am out of solutions). I have also tried the chmod and chown commands in various versions, but nothing seems to work.
(I know there are several posts on syncing google calendar events to Obsidian daily notes and they work quite well, but I have a work outlook calendar so have to use icalBuddy.)
Here is a screenshot of the error message:
Here are screenshots of my Templater settings and definitions, and my function call in the daily note template:
That error messages seems a little incomplete as it refers to a folder, and not the actual program/script it should run. This makes me wonder whether there is something odd about the location of the icalBuddy program.
Is it located in the /usr/local/bin folder? Is it even this program the script is complaining about?
Could you do the following commands within terminal, and report back on the result:
ls -ld /usr /usr/local /usr/local/bin /usr/local/bin/icalBuddy
which icalBuddy
type -a icalBuddy
This will report the file access related to the path in question, and tell us where your icalBuddy is installed.
I’m almost sorry to say, that this looks good. So that indicates that your error is somewhere else. But where?!
Looking through your previous explanation, thinking…
This is not correct!!! Try emptying out this field. It should have some value like /bin/bash (or be empty), but having /usr/local/bin is just wrong. And that also explains the strange error message as you shouldn’t try to spawn a folder like /usr/local/bin.
So either just empty it, and see what happens. Or try /bin/bash, and see if that works, and if that doesn’t work either, try doing echo $SHELL in your terminal and copy that value into this field in Settings > Templater > Shell binary location.
I think my initial problem was solved!!! Thank you so much!!!
I changed the shell binary location to /bin/bash and revised the icalBuddy command to be /usr/local/bin/icalBuddy. Now I am getting a different error message (progress!) saying “No calendars”. I tried multiple different calendars and got the same error. Meanwhile, the icalBuddy command works completely fine in the terminal.
Appreciate your help if you happen to know what this new error is about. Either way, I will be doing some digging on my own, and thank you sooooo much for helping. I would’ve never figured it out myself.