Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ics conversion error #1

Closed
gambhiro opened this issue Oct 8, 2012 · 1 comment
Closed

ics conversion error #1

gambhiro opened this issue Oct 8, 2012 · 1 comment

Comments

@gambhiro
Copy link

gambhiro commented Oct 8, 2012

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'
@revl
Copy link
Owner

revl commented Nov 1, 2012

Hi. The problem was that the ICS file generated by RTM now uses DOS newlines (CR/LF). I fixed it. Thank you for taking time to report this error.

@revl revl closed this as completed Nov 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants