I'm also having addin trouble - not in addins list
John Niendorf <
john@...>
2013-05-08 22:34:30 GMT
Hi Guys,
I've been trying to set up ToDo.txt Google Task Sync.
The code is at:
https://github.com/amcintosh/todo.txt-cli/blob/google-tasks-addon/.todo.actions.d/google
I have the Google API Client Library installed and put my Client_ID and Client_Secret in the python script.
Specifically I'm having several strange problems:
1. The addon does not appear when I run t listaddons in the terminal. (I have other addons that do appear however.)
This means that when I try to run the script from within ToDo.txt, I get an error message telling me which
commands ToDo.txt will accept.
2. I managed to get the script to go to Google and let me authorize it, by typing a command twice.
Specifically, the command to push my todo list to Google is: google push all
I had to type google push push all
3. If I try to run the script by itself I get an error message about usage unless I type a double command: google
push push all or google pull pull
Now the really weird part is that if I do invoke the script I get this error:
$ ~/todo.actions.d/google pull pull
Pulling from Google Tasks
Traceback (most recent call last):
File "/home/john/todo.actions.d/google", line 265, in <module>
main(sys.argv[1:])
File "/home/john/todo.actions.d/google", line 252, in main
pull()
File "/home/john/todo.actions.d/google", line 143, in pull
call([os.environ.get("TODO_FULL_SH"),"archive"])
File "/usr/lib/python2.7/subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
AttributeError: 'NoneType' object has no attribute 'rfind'
or this error:
File "/home/john/todo.actions.d/google", line 265, in <module>
main(sys.argv[1:])
File "/home/john/todo.actions.d/google", line 258, in main
push("todo")
File "/home/john/todo.actions.d/google", line 210, in push
call([os.environ.get("TODO_FULL_SH"),"archive"])
File "/usr/lib/python2.7/subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
AttributeError: 'NoneType' object has no attribute 'rfind'
Do any of you have this addon working?
Thank you for reading! It would be great to get this working.
--
John
------------------------------------
http://todotxt.comYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/todotxt/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/todotxt/join
(Yahoo! ID required)
<*> To change settings via email:
todotxt-digest@...
todotxt-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
todotxt-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/