id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 11328,AttributeError: 'NoneType' object has no attribute 'days',alex.pereira,Jun Omae,"==== How to Reproduce ==== While doing a GET operation on `/ticketcalendar-box`, Trac issued an internal error. ''I've installed agile from the egg package available at http://www.agilofortrac.com/en/download/licensed/binary_agilo-PRO-py2.7.egg.zip, in a Ubuntu Server 12.04 host. Then, I've installed the TicketCalendar Plugin from the zip file available at http://trac-hacks.org/changeset/latest/ticketcalendarplugin?old_path=/&filename=ticketcalendarplugin&format=zip. I compiled and then used easy_install to install the egg package. I also run sudo trac-admin $ENV upgrade, and set up the plugin options in trac.ini ticketcalendar.* = enabled and ticketcalendar.web_ui.ticketcalendarmodule = enabled. After that when I access the link http://HOST/agile/ticketcalendar-box or click the corresponding button in the panel, the following error message appears AttributeError: 'NoneType' object has no attribute 'days'. How can I fix it?'' Request parameters: {{{ {} }}} User agent: `Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36` ==== System Information ==== || '''`Trac`''' || `0.12.2` || || '''`Agilo`''' || `1.3.10-PRO` || || '''`Babel`''' || `0.9.6 (translations unavailable)` || || '''`Docutils`''' || `0.8.1` || || '''`Genshi`''' || `0.6` || || '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})` || || '''`Pygments`''' || `1.4` || || '''`pysqlite`''' || `2.6.0` || || '''`Python`''' || `2.7.3 (default, Apr 10 2013, 06:31:07) ` [[br]] `[GCC 4.6.3]` || || '''`pytz`''' || `2011k` || || '''`setuptools`''' || `0.6` || || '''`SQLite`''' || `3.7.9` || || '''`Subversion`''' || `1.6.17 (r1128011)` || || '''`jQuery`''' || `1.4.2` || ==== Enabled Plugins ==== || '''`binary-agilo`''' || `1.3.10-PRO` || || '''`TicketCalendarPlugin`''' || `0.12.0.2` || || '''`TracAccountManager`''' || `0.2.1dev` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 511, in _dispatch_request dispatcher.dispatch(req) File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 237, in dispatch resp = chosen_handler.process_request(req) File ""/usr/local/lib/python2.7/dist-packages/TicketCalendarPlugin-0.12.0.2-py2.7.egg/ticketcalendar/web_ui.py"", line 805, in process_request return self._process_box(req, query, data, month) File ""/usr/local/lib/python2.7/dist-packages/TicketCalendarPlugin-0.12.0.2-py2.7.egg/ticketcalendar/web_ui.py"", line 831, in _process_box content = calendar.gen_calendar(data['tickets'], query, month) File ""/usr/local/lib/python2.7/dist-packages/TicketCalendarPlugin-0.12.0.2-py2.7.egg/ticketcalendar/web_ui.py"", line 405, in gen_calendar day_names = get_day_names(locale=locale, width='abbreviated') File ""/usr/lib/python2.7/dist-packages/babel/dates.py"", line 69, in get_day_names return Locale.parse(locale).days[context][width] AttributeError: 'NoneType' object has no attribute 'days' }}}",defect,closed,normal,TicketCalendarPlugin,normal,fixed,,,0.12