Timezone issue with Django 1.4 and Sentry?

215 views
Skip to first unread message

Victor Hooi

unread,
Jan 5, 2012, 9:32:07 PM1/5/12
to disqus-o...@googlegroups.com
Hi,

I'm attempting to run Django Sentry on Django 1.4 (alpha), and I seem to be hitting an issue with timezone awareness?

Originally, when I ran it, I got the rather nondescript message:

No handlers could be found for logger "sentry.errors.client"

As per the advice here (https://groups.google.com/d/topic/disqus-opensource/kULFXm42eQg/discussion), I added the following to my settings.py:

import logging
logger = logging.getLogger('sentry.errors')
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())

I then get the following on stderr:

Unable to process log entry: can't subtract offset-naive and offset-aware datetimes
Traceback (most recent call last):
  File "/home/victorhooi/.virtualenvs/aegnexus/src/sentry/sentry/manager.py", line 321, in from_kwargs
    group, is_new, is_sample = self._create_group(event, **group_kwargs)
  File "/home/victorhooi/.virtualenvs/aegnexus/src/sentry/sentry/manager.py", line 365, in _create_group
    silence_timedelta = date - group.last_seen
TypeError: can't subtract offset-naive and offset-aware datetimes

Any advice?

Cheers,
Victor
Reply all
Reply to author
Forward
0 new messages