GcalCLI agenda - DeprecationWarning & UnicodeDecodeError

Bug #414587 reported by sirald66
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcalcli (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gcalcli

Ubuntu 9.04 - Linux 2.6.28-15-generic
GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)
Python 2.6.2
gcalcli 1.4-1

EXPECTED: Run the command below, get 5 day agenda.

ACTUAL: Appeared to show most of 5 day agenda, but received DeprecationWarning & UnicodeDecodeError.

NOTE: Bug #364951 appears closely related, but the errors are different.

andy@TOBY:~$ gcalcli --user XXXXXXXX --pw XXXXXXXX agenda
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha

Fri Aug 14 12:00am SLC FILM FEST

Sun Aug 16 12:00am Amex Blue - $15
          Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "/usr/bin/gcalcli", line 1044, in DoooooItHippieMonster
    gcal.AgendaQuery()
  File "/usr/bin/gcalcli", line 779, in AgendaQuery
    self._PrintEvents(today, start, eventList)
  File "/usr/bin/gcalcli", line 626, in _PrintEvents
    ' %-7s %s\n' % (tmpTimeStr, event.title.text))
  File "/usr/bin/gcalcli", line 207, in PrintMsg
    sys.stdout.write(msg)
  File "/usr/lib/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 33: ordinal not in range(128)
andy@TOBY:~$

---

FYI - Using gcalcli because Google Calendar Notifier 2.5.3 extension is not Firefox 3.5 compatible; it ran flawlessly; author abandoned support with suggestion of disabling compatibility checking. This would be great integrated into a Gnome Panel.

sirald66 (sirald66)
summary: - GcalCLI agena - DeprecationWarning & UnicodeDecodeError
+ GcalCLI agenda - DeprecationWarning & UnicodeDecodeError
Revision history for this message
jinnstar (jinnstar) wrote :

Similar behavior on Karmic beta:
Linux 2.6.31-13-generic #44-Ubuntu SMP Sat Oct 10 15:27:14 UTC 2009 x86_64 GNU/Linux
GNU bash, version 4.0.33(1)-release (x86_64-pc-linux-gnu)
python --version - Python 2.6.4rc1
gcalcli 1.4-2

$ gcalcli agenda

Mon Oct 12 12:00am Columbus Day
                     Length: 1 day, 0:00:00
                     Reminder: 10 Minutes
             8:30am busy
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "/usr/bin/gcalcli", line 1044, in DoooooItHippieMonster
    gcal.AgendaQuery()
  File "/usr/bin/gcalcli", line 779, in AgendaQuery
    self._PrintEvents(today, start, eventList)
  File "/usr/bin/gcalcli", line 632, in _PrintEvents
    if event.where[0].value_string:
IndexError: list index out of range
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 100, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 13] Permission denied: '/var/crash/_usr_bin_gcalcli.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1114, in <module>
    DoooooItHippieMonster()
  File "/usr/bin/gcalcli", line 1044, in DoooooItHippieMonster
    gcal.AgendaQuery()
  File "/usr/bin/gcalcli", line 779, in AgendaQuery
    self._PrintEvents(today, start, eventList)
  File "/usr/bin/gcalcli", line 632, in _PrintEvents
    if event.where[0].value_string:
IndexError: list index out of range

Revision history for this message
Mark Edgington (edgimar) wrote :

Would you two be able to try the version of gcalcli available at https://bitbucket.org/edgimar/gcalcli/raw/tip/gcalcli , and see if this problem still occurs?

Revision history for this message
sirald66 (sirald66) wrote :

WORKING ON ISSUE WITH MARK

Revision history for this message
Unit 193 (unit193) wrote :

Howdy,

10+ years on, and gcalcli has undergone tons of work, including porting to python3 which fixes a *lot* of unicode errors. If a bug like this still occurs, feel free to open a new bug that will include the current traceback and other debugging information.

Thanks,
~Unit 193

Changed in gcalcli (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.