AnthonyDiGirolamo / todotxt-machine

an interactive terminal based todo.txt file editor with an interface similar to mutt
https://pypi.python.org/pypi/todotxt-machine/
GNU General Public License v3.0
244 stars 37 forks source link

ConfigParser.MissingSectionHeaderError: File contains no section headers. #45

Closed awitherow closed 7 years ago

awitherow commented 7 years ago
$ todotxt-machine --config Dropbox/todo/todo.txt

After installing todotxt-machine via pip, I attempt to run the command above and get the following traceback.

Traceback (most recent call last):
  File "/usr/local/bin/todotxt-machine", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/todotxt_machine/cli.py", line 90, in main
    cfg.read(os.path.expanduser(arguments['--config']))
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: Dropbox/todo/todo.txt, line: 1
'(A) +XXX git nosql @XXX @XXX\n'

Any ideas why my todo.txt does not contain section headers? Why do they need to be set? I created this file via the todo-txt cli application and it does not seem to be supported by default.