From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido Van Hoecke Subject: Re: ical2org.py Date: Tue, 21 May 2013 15:10:51 +0200 Message-ID: References: <20130512100413.GA26896@sipc87.si.ehu.es> <87fvxgk2br.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UemLF-0007Xt-U9 for emacs-orgmode@gnu.org; Tue, 21 May 2013 09:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UemLA-0005qx-Ks for emacs-orgmode@gnu.org; Tue, 21 May 2013 09:11:01 -0400 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:47186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UemLA-0005qe-Af for emacs-orgmode@gnu.org; Tue, 21 May 2013 09:10:56 -0400 Received: by mail-ea0-f181.google.com with SMTP id a11so384155eae.12 for ; Tue, 21 May 2013 06:10:55 -0700 (PDT) In-Reply-To: <87fvxgk2br.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Tue, 21 May 2013 12:19:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org, aitors2005@gmail.org Eric S Fraga writes: > aitor writes: > >> Hi, >> >> I've implemented a little script which converts ics files to >> org-mode. You can find the script here: >> >> https://github.com/asoroa/ical2org.py > > Aitor, > > I would like to try this out but, as I am not a python user, I have no > idea how to get the two bits you indicate being necessary (icalendar, > pytz) installed. I have installed python-dateutil and python-pycalendar > as these looked the most obvious candidates for icalendar but no > luck. Searching the repositories for pytz draws a blank as well. I got iCalendar from https://pypi.python.org/pypi/icalendar, untarred it and ran `sudo python setup.py install' Got pytz from https://pypi.python.org/pypi/pytz/. It comes as an egg file so you just run `sudo easy-install pytz-2013b-py2.7.egg' This command should get you going: `./ical2org.py input.ics > output.org Hope this helps, Guido -- Ever since prehistoric times, wise men have tried to understand what, exactly, make people laugh. That's why they were called "wise men." All the other prehistoric people were out puncturing each other with spears, and the wise men were back in the cave saying: "How about: Would you please take my wife? No. How about: Here is my wife, please take her right now. No. How about: Would you like to take something? My wife is available. No. How about ..." -- Dave Barry, "Why Humor is Funny"