Giter Site home page Giter Site logo

todotxt_import's People

Contributors

revl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

todotxt_import's Issues

ics conversion error

Hi, I tried the ics converter, but things must have changed since you wrote it, and it gave an error. (On the other hand, the atom converter worked with no problem, thanks for sharing it.)

I downloaded the "All tasks" list with the "iCalendar" link the RTM page provides on the right-hand side.

wget "wget "https://www.rememberthemilk.com/icalendar/USER_NAME/LIST_ID/?tok=NNNN" -O all-tasks.ical"

And then, "rtm_ics_to_todotxt.py" gave the following error message:

Traceback (most recent call last):
  File "./rtm_ics_to_todotxt.py", line 172, in <module>
    sys.exit(main(sys.argv))
  File "./rtm_ics_to_todotxt.py", line 142, in main
    'r', 'utf-8')).get_root()['VTODO']
  File "./rtm_ics_to_todotxt.py", line 59, in get_root
    return self.__node['VCALENDAR'][0]
KeyError: 'VCALENDAR'

error when empty line in .ics file

thanks for this handy tool!

when i started the conversion it gave this error:


Traceback (most recent call last):
  File "ics_to_todotxt.py", line 188, in <module>
    sys.exit(main(sys.argv))
  File "ics_to_todotxt.py", line 155, in main
    todos = ICSParser(codecs.open(input_file_name,
  File "ics_to_todotxt.py", line 53, in __init__
    if line[0] == ' ':
IndexError: string index out of range

In my case it was due to an empty line in the description of an event or a line with just spaces in it.

Filtering out all "empty" lines before parsing should fix the problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.