pombreda / gcalcli

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

crash with multiple calendars in account (with Google Apps) #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using gcalcli with a Google Apps account with multiple calendars,
gcalcli dies with the following traceback:
 mwalling@destiny:~$ gcalcli list
 Traceback (most recent call last):
   File "/usr/local/bin/gcalcli", line 1114, in ?
      DoooooItHippieMonster()
   File "/usr/local/bin/gcalcli", line 1025, in DoooooItHippieMonster
     borderColor=borderColor)
   File "/usr/local/bin/gcalcli", line 312, in __init__
     self.allCals.entry.sort(lambda x, y:
   File "/usr/local/bin/gcalcli", line 312, in <lambda>
     self.allCals.entry.sort(lambda x, y:
 KeyError: 'root'

This does not effect normal Google Calendars (using an @gmail account) 

Original issue reported on code.google.com by markwall...@gmail.com on 1 Nov 2007 at 9:20

GoogleCodeExporter commented 9 years ago
I'm using google apps with multiple accounts and am not getting this problem.
However I did get a similar error when my .gcalclirc file was misconfigured.

Original comment by tregea...@gmail.com on 23 Nov 2007 at 10:35

GoogleCodeExporter commented 9 years ago
For a quick fix, comment out line 312 (self.allCals.entry.sort(lambda...)), it 
looks
like this is just trying to sort the calendars by access level. Perhaps the 
google
apps info is a bit different from what the script expects.

Skip the sort by commenting out line 312, and all works fine.

Original comment by scott%wi...@gtempaccount.com on 26 Nov 2007 at 7:15

GoogleCodeExporter commented 9 years ago
The quick fix is confirmed to work here

Original comment by sogr...@gmail.com on 5 Jun 2008 at 2:24

GoogleCodeExporter commented 9 years ago
Quick fix works here too.

Original comment by ekg2...@gmail.com on 18 May 2009 at 2:13

GoogleCodeExporter commented 9 years ago
I have similar problem with Apps account. quick fix do not work for me!

Traceback (most recent call last):
  File "./gcalcli.py", line 1114, in <module>
    DoooooItHippieMonster()
  File "./gcalcli.py", line 1025, in DoooooItHippieMonster
    borderColor=borderColor)
  File "./gcalcli.py", line 321, in __init__
    cal.gcalcli_username    = urllib.unquote(match.group(1))
AttributeError: 'NoneType' object has no attribute 'group'

Original comment by f...@foadnh.org on 6 Jan 2011 at 7:19

GoogleCodeExporter commented 9 years ago
I also see the same issue as the user above:

Traceback (most recent call last):
  File "/usr/local/bin/gcalcli", line 1114, in ?
    DoooooItHippieMonster()
  File "/usr/local/bin/gcalcli", line 1025, in DoooooItHippieMonster
    borderColor=borderColor)
  File "/usr/local/bin/gcalcli", line 321, in __init__
    cal.gcalcli_username    = urllib.unquote(match.group(1))
AttributeError: 'NoneType' object has no attribute 'group'

Original comment by jbusc...@lambesis.com on 19 Jan 2011 at 11:56

GoogleCodeExporter commented 9 years ago
I have the same problem either:

Traceback (most recent call last):
  File "./gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "./gcalcli", line 1025, in DoooooItHippieMonster
    borderColor=borderColor)
  File "./gcalcli", line 312, in __init__
    self.allCals.entry.sort(lambda x, y:
  File "./gcalcli", line 313, in <lambda>
    cmp(order[x.access_level.value],
KeyError: 'root'

Original comment by kappad...@gmail.com on 6 May 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Same issue here:

Traceback (most recent call last):
  File "./gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "./gcalcli", line 1025, in DoooooItHippieMonster
    borderColor=borderColor)
  File "./gcalcli", line 312, in __init__
    self.allCals.entry.sort(lambda x, y:
  File "./gcalcli", line 313, in <lambda>
    cmp(order[x.access_level.value],
KeyError: 'root'

Original comment by s...@thepeoplespeak.org.uk on 24 May 2011 at 10:31

GoogleCodeExporter commented 9 years ago
Fixed.  The gdata API and calendar spec has added many more "access levels" 
since the initial release of gcalcli.  The new levels have been added and the 
calendar sorting is working again.

Original comment by eda...@insanum.com on 23 Jul 2011 at 11:36

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59