Modify

Opened 6 months ago

Closed 5 months ago

Last modified 5 months ago

#11547 closed defect (duplicate)

Install issue

Reported by: kulibarri20@… Owned by: jun66j5
Priority: normal Component: TracHtmlNotificationPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I followed the install instructions and I still have ugly text notification emails. What could be wrong?

Attachments (0)

Change History (12)

comment:1 Changed 6 months ago by jun66j5

You can turn on TracLogging with DEBUG level and make sure the issue using trac.log. If you don't solve it, attach your $ENV/conf/trac.ini and $ENV/log/trac.log after reproduce it.

comment:2 Changed 6 months ago by jun66j5

  • Keywords needinfo added

comment:3 follow-up: Changed 5 months ago by russell.ballestrini@…

Not the same user, but also having issues getting the plugin to work

enabled logging and have the following tracebacks

Most likely related

014-02-13 01:16:15,243 Trac[notification] WARNING: Caught exception while substituting message
Traceback (most recent call last):
  File "/cars/trac/cars-sm/plugins/TracHtmlNotificationPlugin-0.12.0.1-py2.7.egg/trachtmlnotification/notification.py", line 72, in substitute_message
    return self._substitute_message(chrome, req, message)
  File "/cars/trac/cars-sm/plugins/TracHtmlNotificationPlugin-0.12.0.1-py2.7.egg/trachtmlnotification/notification.py", line 126, in _substitute_message
    html = self._create_html_body(chrome, req, ticket, cnum, link)
  File "/cars/trac/cars-sm/plugins/TracHtmlNotificationPlugin-0.12.0.1-py2.7.egg/trachtmlnotification/notification.py", line 163, in _create_html_body
    rendered = chrome.render_template(req, template, data, fragment=True)
  File "/cars/trac/.env/local/lib/python2.7/site-packages/trac/web/chrome.py", line 983, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/cars/trac/.env/local/lib/python2.7/site-packages/genshi/core.py", line 133, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/cars/trac/.env/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1162, in inner
    data)
  File "/cars/trac/cars-sm/plugins/TracSubcomponents-1.2.0-py2.7.egg/subcomponents/web_ui.py", line 135, in filter_stream
    elif req.path_info.startswith('/query'):
AttributeError: 'Mock' object has no attribute 'path_info'

most likely _not_ related

Traceback (most recent call last):
  File "/cars/trac/.env/local/lib/python2.7/site-packages/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/cars/trac/.env/local/lib/python2.7/site-packages/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/cars/trac/cars-sm/plugins/TracTicketChainedFields-0.1-py2.7.egg/tcf/web_ui.py", line 197, in process_request
    trigger_values = locate_trigger_values(tcf_define_target)
UnboundLocalError: local variable 'tcf_define_target' referenced before assignment

comment:4 in reply to: ↑ 3 ; follow-up: Changed 5 months ago by jun66j5

Replying to russell.ballestrini@…:

Not the same user, but also having issues getting the plugin to work

Please create a new ticket for that.

comment:5 Changed 5 months ago by jun66j5

  • Resolution set to worksforme
  • Status changed from new to closed

No feedback from original issuer.

comment:6 Changed 5 months ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Give me a few days to get the info. Being a trac admin is far from my primary duty, therefore I can't provide immediate feedback.

comment:7 in reply to: ↑ 4 Changed 5 months ago by anonymous

Replying to jun66j5:

Replying to russell.ballestrini@…:

Not the same user, but also having issues getting the plugin to work

Please create a new ticket for that.

Sure, created a new ticket for my issues here #11570

comment:8 Changed 5 months ago by kulibarri20@…

Exerpt from log file...

2014-02-07 08:42:49,388 Trac[notification] WARNING: Caught exception while substituting message
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/TracHtmlNotificationPlugin-0.12.0.1-py2.6.egg/trachtmlnotification/notification.py", line 72, in substitute_message
    return self._substitute_message(chrome, req, message)
  File "/usr/local/lib/python2.6/dist-packages/TracHtmlNotificationPlugin-0.12.0.1-py2.6.egg/trachtmlnotification/notification.py", line 126, in _substitute_message
    html = self._create_html_body(chrome, req, ticket, cnum, link)
  File "/usr/local/lib/python2.6/dist-packages/TracHtmlNotificationPlugin-0.12.0.1-py2.6.egg/trachtmlnotification/notification.py", line 163, in _create_html_body
    rendered = chrome.render_template(req, template, data, fragment=True)
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 840, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/usr/lib/pymodules/python2.6/genshi/core.py", line 132, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 991, in inner
    data)
  File "/usr/local/lib/python2.6/dist-packages/TracSubcomponents-1.1.2-py2.6.egg/subcomponents/web_ui.py", line 130, in filter_stream
    elif req.path_info.startswith('/query'):
AttributeError: 'Mock' object has no attribute 'path_info'
Last edited 5 months ago by jun66j5 (previous) (diff)

comment:9 Changed 5 months ago by jun66j5

  • Resolution set to duplicate
  • Status changed from reopened to closed

That is the same as #11570. Please upgrade to [13660] or later. Thanks.

comment:10 Changed 5 months ago by jun66j5

  • Keywords needinfo removed

comment:11 Changed 5 months ago by kulibarri20@…

Is upgrading as simple as rerunning the easy installer?

comment:12 Changed 5 months ago by jun66j5

Use easy_install -U and restart your web server. The --help option of easy_install always helps you.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from jun66j5. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.