Skip to content

Hide finished repeating events #15

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

Closed
jbmartin opened this issue Feb 9, 2014 · 14 comments
Closed

Hide finished repeating events #15

jbmartin opened this issue Feb 9, 2014 · 14 comments

Comments

@jbmartin
Copy link

jbmartin commented Feb 9, 2014

Khal synced with Google calendars (maybe others too) displays repeating events that have previously ended.

@geier
Copy link
Member

geier commented Feb 10, 2014

This issue does not depend on the type of server used, but end dates and exceptions of recurrent events are just not implemented yet (but high up on the ToDo list).

geier added a commit that referenced this issue Feb 10, 2014
might already fix github issue #15
@geier
Copy link
Member

geier commented Feb 10, 2014

Repeating events that have ended should be fixed (but not single exceptions). Please Reopen if the bug persists.

@geier geier closed this as completed Feb 10, 2014
@geier
Copy link
Member

geier commented Feb 10, 2014

BTW: could you tell me how you got khal to sync with google in the first place? As far is I know (or see here google supports OAuth2 only (which khal does not (yet) support).

@jbmartin
Copy link
Author

Pulled the latest master. Now, I get the following error when syncing:

CRITICAL:root:While syncing account schedule an error occured:
  cant compare offset-naive and offset-aware datetimes

To sync Google Calendars, I copied the private iCal link and password into the config file and it worked.

@geier geier reopened this Feb 11, 2014
@geier
Copy link
Member

geier commented Feb 11, 2014

please paste the output of khal --sync --debug

@geier
Copy link
Member

geier commented Feb 11, 2014

thanks, I'll have a look, but I guess this will be a read-only calendar.

@jbmartin
Copy link
Author

My Google Calendars are read only, but I still find them useful for checking my schedule.

Below is the debug report. I obfuscated personal info with the hope that the remaining portion will still be diagnostic.

DEBUG:root:calculating recurrence dates for xxxxxxxxxxxxxxxxxxxxxx@google.com, this might take some time.
DEBUG:root:calculating recurrence dates for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, this might take some time.
DEBUG:root:Traceback (most recent call last):
  File "build/bdist.macosx-10.9-intel/egg/khal/khalendar.py", line 144, in sync
    self._sync_http()
  File "build/bdist.macosx-10.9-intel/egg/khal/khalendar.py", line 232, in _sync_http
    status=OK)
  File "build/bdist.macosx-10.9-intel/egg/khal/backend.py", line 290, in update
    dtstartl = list(rrule)
  File "/usr/local/lib/python2.7/site-packages/dateutil/rrule.py", line 515, in _iter
    if until and res > until:
TypeError: can't compare offset-naive and offset-aware datetimes

CRITICAL:root:While syncing account `schedule` an error occured:
  can't compare offset-naive and offset-aware datetimes

@geier
Copy link
Member

geier commented Feb 11, 2014

I tried to reproduce this bug with various repeating events on google calendar but failed. Could you perhaps go through your .ics file by hand, look for the event that failed and post its RRULE, DTSTART and DTEND properties? (you can of course change the exact values, but leave the structure).

@0X1A
Copy link

0X1A commented Apr 17, 2014

@geier I'm also getting

CRITICAL:root:While syncing account schedule an error occured:
  cant compare offset-naive and offset-aware datetimes

with owncloud.

@geier
Copy link
Member

geier commented Apr 17, 2014

Please paste the output of khal --sync --debug (and remove personal details).

@0X1A
Copy link

0X1A commented Apr 17, 2014

DEBUG:root:Using configuration from /home/user/.config/khal/khal.conf
DEBUG:root:Using configuration::
DEBUG:root: accounts:
DEBUG:root:     home:
DEBUG:root:         auth: basic
DEBUG:root:         color: dark blue
DEBUG:root:         name: home
DEBUG:root:         readonly: False
DEBUG:root:         resource: http://domain.com/owncloud/remote.php/caldav/calendars/user/defaultcalendar/
DEBUG:root:         server_type: caldav
DEBUG:root:         ssl_verify: no
DEBUG:root:         user: user
DEBUG:root: debug: True
DEBUG:root: default:
DEBUG:root:     dateformat: %m-%d
DEBUG:root:     datetimeformat: %m-%d %H:%M
DEBUG:root:     debug: 0
DEBUG:root:     default_timezone: America/Chicago
DEBUG:root:     encoding: utf-8
DEBUG:root:     firstweekday: 0
DEBUG:root:     local_timezone: America/Chicago
DEBUG:root:     longdateformat: %Y-%m-%d
DEBUG:root:     longdatetimeformat: %Y-%m-%d %H:%M
DEBUG:root:     timeformat: %H:%M
DEBUG:root:     unicode_symbols: True
DEBUG:root: filename: /home/user/.config/khal/khal.conf
DEBUG:root: importing: None
DEBUG:root: list_accounts: False
DEBUG:root: new: None
DEBUG:root: sqlite:
DEBUG:root:     path: /home/user/.khal/khal.db
DEBUG:root: sync:
DEBUG:root:     accounts: set(['home'])
DEBUG:root: syncrun: True
DEBUG:root:created version table
DEBUG:root:created accounts table
DEBUG:root:starting to sync calendar `home`
DEBUG:root:syncing events in the next 365 days
DEBUG:root:6 event(s) need(s) an update
DEBUG:root:calculating recurrence dates for /owncloud/remote.php/caldav/calendars/user/defaultcalendar/owncloud-c8b26df0d94a0fa2dc8ec53dd569c031.ics, this might take some time.
DEBUG:root:Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/khal/khalendar.py", line 124, in sync
    self._sync_caldav()
  File "/usr/lib/python2.7/site-packages/khal/khalendar.py", line 156, in _sync_caldav
    etag=etag)
  File "/usr/lib/python2.7/site-packages/khal/backend.py", line 290, in update
    dtstartl = list(rrule)
  File "/usr/lib/python2.7/site-packages/dateutil/rrule.py", line 515, in _iter
    if until and res > until:
TypeError: can't compare offset-naive and offset-aware datetimes

CRITICAL:root:While syncing account `home` an error occured:
  can't compare offset-naive and offset-aware datetimes

@geier
Copy link
Member

geier commented Apr 17, 2014

This might be fixed in current master, you might want to check that. Please note that khal has lost its build in CalDAV functionality and now relies on vdirsyncer for CalDAV support.

@untitaker
Copy link
Member

Quite a lot of stuff has changed since the vdir branch has been merged. Does this problem also occur with the new setup?

@geier
Copy link
Member

geier commented Jul 7, 2014

As there hasn't been any activity on this in some time, a lot has changed in khal since this report and I cannot reproduce it, I will close this bug now. If you the bug is indeed not fixed, please reopen or file a new one. Thank you.

@geier geier closed this as completed Jul 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants