insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.31k stars 311 forks source link

Remind throwing an error when there is an event #606

Closed veebch closed 3 years ago

veebch commented 3 years ago

First of all, brilliant tool. Thank you

Secondly, in otherwise flawless operation, the remind command seems to be misbehaving (or equally likely, I'm missing something). Here's the offending message:

$ gcalcli remind 10
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 11, in <module>
    load_entry_point('gcalcli==4.1.0', 'console_scripts', 'gcalcli')()
  File "/usr/lib/python3/dist-packages/gcalcli/cli.py", line 218, in main
    use_reminders=parsed_args.use_reminders
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 1371, in Remind
    os.execvp(cmd[0], cmd)
  File "/usr/lib/python3.7/os.py", line 571, in execvp
    _execvpe(file, args)
  File "/usr/lib/python3.7/os.py", line 613, in _execvpe
    raise last_exc
  File "/usr/lib/python3.7/os.py", line 604, in _execvpe
    exec_func(fullname, *argrest)
FileNotFoundError: [Errno 2] No such file or directory

Any pointers on how to fix?

EDIT After looking at the code, it is ok if there is a valid command in there. eg: calcli remind 10 /home/pi/coffee.sh