Hello --
I am setting up a RoundUp ticket tracking server, and one of the components that I am trying to get to work is the email notification. There are two python scripts that can be used to this end. Each script is meant to be run as a cron job, and sends out notifications of open tickets. The scripts are attached to this posting.
I am testing each script by manually running it as root or non-root user using the following command syntax:
python <script>
I am encountering error messages when running either script. When I run the roundup-reminder script, the following error message is displayed on-screen:
Quote:
File "roundup-reminder.py", line 118
print >>body, '''
^
IndentationError: unindent does not match any outer indentation level
|
When I run the email_reminder script, the output is as follows:
Quote:
Traceback (most recent call last):
File "email_reminder.py", line 100, in <module>
reminders.run()
File "email_reminder.py", line 90, in run
self._email_reminder(nodeid)
File "email_reminder.py", line 65, in _email_reminder
author = (self.db.config.detectors['MAIL_FROM_NAME'], self.db.config.detectors['MAIL_FROM_ADDRESS'])
File "/usr/lib/pymodules/python2.6/roundup/configuration.py", line 1147, in __getitem__
return self._get_option(name).get()
File "/usr/lib/pymodules/python2.6/roundup/configuration.py", line 1029, in _get_option
raise InvalidOptionError(name)
roundup.configuration.InvalidOptionError: Unsupported configuration option: MAIL_FROM_NAME
|
The version of python that is installed on the server is:
Python 2.6.5
while that of the MySQL server is the following:
Ver 14.14 Distrib 5.1.63, for debian-linux-gnu (i486) using readline 6.1
Can someone lend a hand here?
Thanks.