pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

Error when import a ICS file #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

I've got a little problem. I run "gcalcli --cal Université import agenda.ics"

The output is :

---

Traceback (most recent call last):
  File "/usr/local/bin/gcalcli", line 1512, in <module>
    BowChickaWowWow()
  File "/usr/local/bin/gcalcli", line 1502, in BowChickaWowWow
    gcal.ImportICS(args[1])
  File "/usr/local/bin/gcalcli", line 1079, in ImportICS
    v = vobject.readComponents(f).next()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 1059, in readComponents
    if transform: component.transformChildrenToNative()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 601, in transformChildrenToNative
    childArray[i]=childArray[i].transformToNative()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 122, in transformToNative
    return self.behavior.transformToNative(self)
  File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 913, in transformToNative
    obj.registerTzinfo(obj.tzinfo)
  File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 108, in gettzinfo
    return dateutil.tz.tzical(buffer).get()
  File "/usr/lib/pymodules/python2.6/dateutil/tz.py", line 717, in __init__
    self._parse_rfc(fileobj.read())
  File "/usr/lib/pymodules/python2.6/dateutil/tz.py", line 801, in _parse_rfc
    "at least one component is needed"
vobject.base.ParseError: "In transformToNative, unhandled exception: <type 
'exceptions.ValueError'>: at least one component is needed"

---

and the import didn't works.

gcalcli v2.1 (Eric Davis) on Ubuntu 10.04 LTS

Thank you !

PS: Sorry for my bad english, I'm french :)

Original issue reported on code.google.com by quentin....@gmail.com on 28 Dec 2011 at 6:00

GoogleCodeExporter commented 9 years ago
Looks like the vcal file is badly formatted.  You should submit this parsing 
issue to the maintainer of the vobject library.

gcalcli moved to github: https://github.com/insanum/gcalcli

Original comment by eda...@insanum.com on 15 May 2012 at 2:44