Modify

Opened 15 years ago

Closed 15 years ago

#4080 closed defect (fixed)

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

Reported by: anonymous Owned by: Felix Tiede
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 ; Changed 15 years ago by Felix Tiede

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 ; Changed 15 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 15 years ago by Felix Tiede

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 15 years ago by Felix Tiede

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Felix Tiede.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.