Modify

Opened 2 years ago

Last modified 6 months ago

#9868 new defect

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

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

Description (last modified by rjollos)

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 2 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by rjollos

  • Description modified (diff)

comment:2 follow-up: Changed 2 years ago by seccanj

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 2 years ago by rjollos

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 2 years ago by seccanj

Oh OK :D
Thanks for your help ;-)

comment:5 Changed 2 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 2 years ago by anonymous

comment:6 Changed 6 months 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

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.