Ticket #3447 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

DatabaseError: no such column: True

Reported by: shahbaz_khalid@hotmail.com Assigned to: doki_pen
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: announcerplugin
Cc: Trac Release: 0.11

Description

Here is the log from trac.log - using latest version of trac 0.11, mysql-python from sourceforge, clearsilver-0.10.4-1.el5.rf.i386.rpm , python-clearsilver-0.10.4-1.el5.rf.i386.rpm etc. using sql lite e.g. the default file based database of trac - Basically followed guide here: http://www.daniel-skinner.co.uk/setup-subversion-and-trac-on-centos-5/06/01/2008 . Also have an inherited trac.ini for my project enviroment ini - the root ini contains the announcer plugin in the components section, and I've changed the notification section to announcer in my project ini. Then upgraded env database without any problems. Also have problem with setting my preferences in trac, no email is sent for validation in trac when I add a new email for a new user (this is when the announcer plugin is active).

2008-07-24 10:04:16,268 Trac[main] DEBUG: 283 unreachable objects found. 2008-07-24 10:04:40,702 Trac[main] DEBUG: Dispatching <Request "POST u'/newticket'"> 2008-07-24 10:04:40,704 Trac[session] DEBUG: Retrieving session for ID u'zeshan' 2008-07-24 10:04:40,791 Trac[api] DEBUG: AnnouncementSystem? found the following subscribers capable of handling 'ticket, created': LegacyTicketSubscriber?, CarbonCopySubscriber?, JoinableGroupSubscriber?, WatchSubscriber? 2008-07-24 10:04:40,792 Trac[ticket_compat] DEBUG: LegacyTicketSubscriber? added 'somebody' because of rule: component owner 2008-07-24 10:04:40,793 Trac[api] DEBUG: AnnouncementSystem? has found the following subscriptions: [somebody(authenticated) via email] 2008-07-24 10:04:40,795 Trac[email_distributor] DEBUG: EmailDistributor? has found the following formats capable of handling 'email' of 'ticket': text/html, text/plain 2008-07-24 10:04:40,795 Trac[api] ERROR: AnnouncementSystem? failed. Traceback (most recent call last):

File "build/bdist.linux-i686/egg/announcerplugin/api.py", line 377, in _real_send File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 161, in distribute File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 203, in _get_preferred_format File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/db/util.py", line 50, in execute

return self.cursor.execute(sql_escape_percent(sql), args)

File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 255, in execute

self.rs = self.con.db.execute(SQL % parms)

DatabaseError?: no such column: True 2008-07-24 10:04:40,825 Trac[api] DEBUG: AnnouncementSystem? sent event in 0.04 seconds.

Attachments

email_dist.patch (0.5 kB) - added by doki_pen on 07/25/08 06:45:00.

Change History

07/24/08 05:21:44 changed by shahbaz_khalid@hotmail.com

forgot to add:

using Python 2.4.3

07/25/08 01:00:36 changed by jstarkey@visagemobile.com

I see the same thing with the sqlite backend using Python 2.4, Trac 0.11:

ERROR: AnnouncementSystem failed. Traceback (most recent call last):   File "build/bdist.linux-i686/egg/announcerplugin/api.py", line 377, in _real_send   File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 161, in distribute   File "build/bdist.linux-i686/egg/announcerplugin/distributors/email_distributor.py", line 203, in _get_preferred_format   File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/db/util.py", line 50, in execute     return self.cursor.execute(sql_escape_percent(sql), args)   File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 255, in execute     self.rs = self.con.db.execute(SQL % parms) DatabaseError: no such column: True

07/25/08 06:44:17 changed by doki_pen

Try the patch

07/25/08 06:45:00 changed by doki_pen

  • attachment email_dist.patch added.

07/25/08 12:12:40 changed by anonymous

RESOLVED Patch worked fine for me! Thanks!

07/25/08 12:13:48 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.

ok, checked in r4061


Add/Change #3447 (DatabaseError: no such column: True)




Change Properties
Action