@gregb the install command uses python 2. This is no longer automatically installed with MacOS. Install Python2 from the Python website and you’ll be able to execute that script.
Precisions: the shell command crontab -e enables to run stuffs every minute/hour/etc. But if cron is not allowed to use calendar it will also raise an error: no calendar. In my settings Automator is allowed to use it, therefore I wrote a process in Automator running the shell script involving icalbuddy command, then saved it as an App (ical.app) and used cron to schedule the execution. In crontab -e I have inserted this line: * * * * * open /path/ical.app
This is still broken for me
Works fine in terminal but still get the ‘No calendars’ error in console when running through templater
Already updated to v1.1.9
Just a quick note for those who are still having this issue - I updated to the v1.1.9 installer, and it prompted me for calendar access when I used my script(s) to run icalBuddy. So if you haven’t updated your installer (look at Options->About) it is worth trying.
Hmm I’m still having this error as well. I’m on Obsidian v1.1.13, icalBuddy v1.10.1 installed via homebrew. Looks like this version doesn’t request the calendar entitlement (see below). @lielu, am I missing something here?
codesign -d --entitlements :- /Applications/Obsidian.app
Executable=/Applications/Obsidian.app/Contents/MacOS/Obsidian
Warning: Specifying ':' in the path is deprecated and will not work in a future release
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/><key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
If you run into this issue please run the “Show debug info” command and paste the result in follow-ups. The entitlements XML has been updated in the following public installer release after this bug was reported (~October 26th 2022) so you might be on an older version of the installer.
plugin:templater-obsidian:61 Templater Error: Error with User Template dailyEvents
Error: spawn / EACCES
at __node_internal_captureLargerStackTrace (node:internal/errors:465:5)
at __node_internal_errnoException (node:internal/errors:595:12)
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
log_error @ plugin:templater-obsidian:61