Not a very specific issue, but I did not get this to work at all, even after having read and fixed some code.
After all that, I managed to get it to start, and went through the auth process, which worked. Now, I cannot sync any list, as it complains about a text without a task. I did not dig deeper here though:
$ michel sync google_tasks.org gtask://fleury/TheList
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/michel2-0.8.0-py3.6.egg/michel/tasktree.py", line 310, in parse_text
indent_level = len(matches[0][0])
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/michel", line 11, in <module>
load_entry_point('michel2==0.8.0', 'console_scripts', 'michel')()
File "/usr/local/lib/python3.6/dist-packages/michel2-0.8.0-py3.6.egg/michel/__init__.py", line 157, in main
sync_todolist(args.orgfile, args.url, args.only_todo)
File "/usr/local/lib/python3.6/dist-packages/michel2-0.8.0-py3.6.egg/michel/__init__.py", line 81, in sync_todolist
base_tree = TasksTree.parse_file(base_path) if os.path.exists(base_path) else None
File "/usr/local/lib/python3.6/dist-packages/michel2-0.8.0-py3.6.egg/michel/tasktree.py", line 293, in parse_file
return TasksTree.parse_text(file_text)
File "/usr/local/lib/python3.6/dist-packages/michel2-0.8.0-py3.6.egg/michel/tasktree.py", line 329, in parse_text
raise ValueError("Text without task is not permitted")
ValueError: Text without task is not permitted
What I would do is to sync all to-do lists in the same file, with an additional level of structure (the power of org-mode). And also then just leave the whole url away, so the user only has to specify a token that she wants to sync with 'the Google' and let the script deal with the rest of the stuff.