Modify

Opened 6 years ago

Closed 6 years ago

#4080 closed defect (fixed)

TypeError: argument 1 must be string or read-only buffer, not None

Reported by: anonymous Owned by: ftiede
Priority: normal Component: TracTicketDepgraphPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Calling depgraph first time I've got the following error. Refresh ticket page everything works fine. (BUT: Got graphivz image without links, description or something else?)

 Trac detected an internal error:

TypeError: argument 1 must be string or read-only buffer, not None
Most recent call last:

    * File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
    * File "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch
    * File "build/bdist.linux-i686/egg/depgraph/web_ui.py", line 93, in process_request
    * File "build/bdist.linux-i686/egg/depgraph/depgraph.py", line 201, in expand_macro
    * File "build/bdist.linux-i686/egg/graphviz/graphviz.py", line 348, in expand_macro
    * File "build/bdist.linux-i686/egg/graphviz/graphviz.py", line 534, in _launch
      Local variables:
      Name	Value
      arg 	'/var/cache/trac/graphviz/1bbf2609dd4e22603167103e227ddb66e1356918.dot.png' ...
      args 	('/usr/bin/rsvg', '--dpi-x=96', '--dpi-y=96', ...
      encoded_cmd 	['/usr/bin/rsvg', '--dpi-x=96', '--dpi-y=96', ...
      encoded_input 	None
      p 	<subprocess.Popen object at 0x41d4622c>
      self 	<graphviz.graphviz.Graphviz object at 0x41d37d2c>

Attachments (0)

Change History (4)

comment:1 in reply to: ↑ description ; follow-up: Changed 6 years ago by ftiede

Replying to anonymous:

Calling depgraph first time I've got the following error. Refresh ticket page everything works fine. (BUT: Got graphivz image without links, description or something else?)

Which version of grahpviz, graphvizplugin and depgraph do you use?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 6 years ago by anonymous

Replying to ftiede:

Which version of grahpviz, graphvizplugin and depgraph do you use?

  • graphviz: 2.2-6
  • graphvizplugin: 0.7.4
  • depgraph: (How to determine?)

comment:3 in reply to: ↑ 2 Changed 6 years ago by ftiede

Replying to anonymous:

Replying to ftiede:

Which version of grahpviz, graphvizplugin and depgraph do you use?

  • depgraph: (How to determine?)

The documentation of the macro (should be available on your WikiMacros page) contains a '$Id:' line, that line shows the active revision number next to 'depgraph.py'. Also depgraph.py contains a line '__id__ =', which is of the same format.

So far I'd guess there's a problem with your ticket's summaries, which are used to build tooltips for the graph's nodes. Especially quotes will cause problems during creation of the graph, as might any other character not plain ascii. So you should look if any of the ticket's summary contain such characters. I know of this problem but didn't have time to work on it.

comment:4 Changed 6 years ago by ftiede

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

Probably fixed in [5200], Please reopen if it still doesn't work.

Add Comment

Modify Ticket

Action
as 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.