Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#569 closed defect (fixed)

Email notification doesn't work

Reported by: skolgan@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.7.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac 0.7.1 on RedHat 8.0 - everything works just dandy, except…

After configuring trac.ini to enable email notifications, the following Python traceback appears when one submits a ticket:

Python traceback Traceback (most recent call last):

File "/usr/lib/python2.2/site-packages/trac/core.py", line 475, in cgi_start

real_cgi_start()

File "/usr/lib/python2.2/site-packages/trac/core.py", line 470, in real_cgi_start

dispatch_request(path_info, args, req, env, database)

File "/usr/lib/python2.2/site-packages/trac/core.py", line 380, in dispatch_request

module.run()

File "/usr/lib/python2.2/site-packages/trac/Module.py", line 41, in run

self.render()

File "/usr/lib/python2.2/site-packages/trac/Ticket.py", line 277, in render

self.save_changes (id, old, new)

File "/usr/lib/python2.2/site-packages/trac/Ticket.py", line 174, in save_changes

tn.notify(id, newticket=0, modtime=now)

File "/usr/lib/python2.2/site-packages/trac/Notify.py", line 215, in notify

NotifyEmail.notify(self, tktid, subject)

File "/usr/lib/python2.2/site-packages/trac/Notify.py", line 128, in notify

Notify.notify(self, resid)

File "/usr/lib/python2.2/site-packages/trac/Notify.py", line 78, in notify

self.send(to)

File "/usr/lib/python2.2/site-packages/trac/Notify.py", line 299, in send

NotifyEmail.send(self, rcpt, hdrs)

File "/usr/lib/python2.2/site-packages/trac/Notify.py", line 140, in send

from email.Header import Header

ImportError: No module named Header

Attachments (0)

Change History (3)

comment:1 by trac@…, 20 years ago

Looks like it might be a corrupt Python installation.

Python 2.2.2 (#1, Jan 10 2003, 09:24:01)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.Header import Header
>>>

comment:2 by skolgan@…, 20 years ago

You mean a corrupt installation on what side? Mine? I run RedHat 8.0, and mine says

Python 2.2.1 (#1, Aug 30 2002, 12:15:30) [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2

comment:3 by skolgan@…, 20 years ago

Resolution: fixed
Status: newclosed

resolved by upgrading python to 2.2.3 - version 2.2.1 does not have email.Header package available. Please make sure that trac install page states that trac works with python v 2.2.2 and later.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.