Opened 16 years ago
Closed 16 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 follow-up: 2 Changed 16 years ago by
comment:2 follow-up: 3 Changed 16 years ago by
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 Changed 16 years ago by
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 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Probably fixed in [5200], Please reopen if it still doesn't work.
Replying to anonymous:
Which version of grahpviz, graphvizplugin and depgraph do you use?