Modify

Opened 13 years ago

Last modified 11 years ago

#9868 new defect

Error: Macro TicketTree() failed coercing to Unicode: need string or buffer, NoneType found

Reported by: anonymous Owned by: Roberto Longobardi
Priority: normal Component: TicketTreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

When I click on Ticket tree link or add [[TicketTree()]] somewhere I only see this error message:

Error: Macro TicketTree() failed
coercing to Unicode: need string or buffer, NoneType found

Attachments (1)

trac.log (31.5 KB) - added by anonymous 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 13 years ago by Roberto Longobardi

Hi rjollos, please, could you describe your environment and attach a debug-enabled trac log, to help me understand what's going wrong?

Ciao, Roberto

comment:3 in reply to:  2 Changed 13 years ago by Ryan J Ollos

Replying to seccanj:

Hi rjollos, please, could you describe your environment and attach a debug-enabled trac log, to help me understand what's going wrong?

We'll have to wait for anonoymous to respond. I was just cleaning up the formatting of the description ... though i've watched this plugin with interest for many months and intend to use it eventually.

comment:4 Changed 13 years ago by Roberto Longobardi

Oh OK :D Thanks for your help ;-)

comment:5 Changed 13 years ago by anonymous

Hi, my environment is Debian GNU/Linux 5.0 (lenny) 2.6.26. I use apache2 with mod_python. Version of trac is 0.11.1.

All tickets written in Russian, but it does not matter I belive.

Changed 13 years ago by anonymous

Attachment: trac.log added

comment:6 Changed 11 years ago by silentstone7@…

I am having the same issue. Here's my system info and the relevant bits from trac.log

System Information Trac: 0.11.1 Python: 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] setuptools: 0.6c8 SQLite: 3.5.9 pysqlite: 2.4.1 Genshi: 0.5.1 Pygments: 0.10 Subversion: 1.5.1 (r32289) jQuery: 1.2.6

trac.log

2014-01-20 13:28:04,367 Trac[formatter] DEBUG: Executing Wiki macro TicketTree by provider <tickettree.macros.TicketTreeMacro object at 0x173d610>
2014-01-20 13:28:04,370 Trac[query] DEBUG: Count results in Query: 4
2014-01-20 13:28:04,370 Trac[query] DEBUG: Query SQL: SELECT t.id AS id,t.summary AS summary,t.priority AS priority,t.time AS time,t.changetime AS changetime,priority.value AS priority_value
FROM ticket AS t
  LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority)
ORDER BY COALESCE(t.summary,'')='',t.summary,t.id
2014-01-20 13:28:04,371 Trac[formatter] ERROR: Macro TicketTree() failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 166, in _macro_processor
    text)
  File "/home/trac/scms/plugins/TicketTree-0.9-py2.5.egg/tickettree/macros.py", line 37, in expand_macro
    return _render_build_ticket_tree(self.env, formatter.req, content)
  File "/home/trac/scms/plugins/TicketTree-0.9-py2.5.egg/tickettree/macros.py", line 118, in _render_build_ticket_tree
    text += _render_data(components,len(tickets),ind,0)
  File "/home/trac/scms/plugins/TicketTree-0.9-py2.5.egg/tickettree/macros.py", line 150, in _render_data
    text+=_get_tickets(cmtData)
  File "/home/trac/scms/plugins/TicketTree-0.9-py2.5.egg/tickettree/macros.py", line 165, in _get_tickets
    text+="<li style='font-weight: normal'><a target='_blank' style='"+style+"' href='../ticket/"+str(tick["id"])+"' >#"+str(tick['id'])+"&nbsp;"+tick['summary']+"&nbsp;<span style='font-size: 0.8em'>["+tick['status']+"]</span></a></li>"
TypeError: coercing to Unicode: need string or buffer, NoneType found

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Roberto Longobardi.

Add Comment


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

 
Note: See TracTickets for help on using tickets.