Olemis Lang wrote:
> On Wed, May 27, 2009 at 2:08 PM, Olemis Lang <[email protected]> wrote:
>   
>> Hello once again !
>>
>> Now that I could install GraphViz I've setup TracGraphViz plugin. I
>> was so excited that I wanted to try it right away. I wrote this simple
>> text for a wiki
>>
>>     
>
> Sorry ... this is what I wrote :
>
> {{{
> #!graphviz
> digraph G {Hello->World->Graphviz->Rules}
> }}}
>
>   
>> ... and this is what I get back ...
>>
>> {{{
>> Oops…
>> Trac detected an internal error:
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>>
>> [...]
>> Python Traceback
>> Most recent call last:
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\templates\wiki_edit.html",
>> line 56, in <Expression u'wiki_to_html(context(page.resource),
>> page.text)'>
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\formatter.py",
>> line 1096, in format_to_html
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\formatter.py",
>> line 1055, in generate
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\formatter.py",
>> line 833, in format
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\formatter.py",
>> line 779, in handle_code_block
>> File "C:\Program
>> Files\Python\2.5\lib\site-packages\trac-0.11.1-py2.5.egg\trac\wiki\formatter.py",
>> line 96, in __init__
>> File "build\bdist.win32\egg\graphviz\graphviz.py", line 218, in get_macros
>> File "build\bdist.win32\egg\graphviz\graphviz.py", line 497, in _load_config
>> File "C:\Program Files\Python\2.5\Lib\ntpath.py", line 255, in exists
>> Code fragment:
>> # Does a path exist?
>>
>> def exists(path):
>>    """Test whether a path exists"""
>>    try:
>>        st = os.stat(path)   < ================= HIGHLIGHTED
>>    except os.error:
>>        return False
>>    return True
>>
>> lexists = exists
>> Local variables:Name    Value
>> path    None
>>
>> System Information:
>>
>> User Agent: Opera/9.63 (X11; Linux i686; U; en) Presto/2.1.1Trac:       
>> 0.11.1
>> Python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
>> setuptools:     0.6c9
>> SQLite: 3.3.4
>> pysqlite:       2.3.2
>> Genshi: 0.5.1
>> mod_python:     3.3.1
>> Pygments:       0.11.1
>> jQuery: 1.2.6
>>
>> Plugin details
>> ---------------------
>>
>> - Version 0.11-0.7.4
>> - Configs under [graphviz]
>>
>> cache_dir = gvcache
>> cache_manager = true
>> cache_max_count = 2000
>> cache_min_size = 5242880
>> cache_minax_count = 1500
>>     
minax?
>> cmd_path = C:\Program Files\Graphviz2.20\bin
>> default_graph_dpi = 96
>> encoding = utf-8
>> out_format = png
>> png_antialias = true
>>     
true...
>> processor = dot
>> rsvg_path =
>>     
... but no rsvg_path defined (png_antialias means use rsvg for 
antialiasing - note that you don't need this with recent versions of 
graphviz, in particular on windows).

So the fix is simply to set png_antialias = no (or remove the setting, 
as it's the default).

That being said, it shouldn't crash that way. The 0.7.5dev version i.e. 
the 0.11 branch of the plugin already contains a fix for that specific 
issue.
I should probably have "released" 0.7.5 at while back.

Looks like a few tickets have piled up for the GraphvizPlugin since the 
last time I looked...

Side note: too bad plugin development is much like the hot potato game, 
the last contributor ends up maintaining the plugin alone - thereby 
anxiously waiting for the next unwary contributor to take over; it would 
be much better to be able to build up an (even small) community of 
developers for each plugin. A simple "critical mass" problem, I suppose.

-- Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to