Tags:
create new tag
view all tags

Question

After installing DirectedGraphPlugin, all the sample images on the plugin page show DirectedGraph Error (1):

The pre-requisites all appear to be OK:

  • Perl module Digest::MD5
  • Graphviz-win v2.20
  • ImageMagick 6.4.4 Q16, (DLL version, with PerlMagick, which were guesses): I had Set ANTIALIAS = off, but the debug log (attached) showed that it was still trying to antialias? So I installed this, but it didn't help.

DirectedGraphPlugin 27 Jul 2006 (V1.300) seems kind of old. Should I used the ZIP attached to the Dev topic instead??

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DirectedGraphPlugin 27 Jul 2006 (V1.300)
Server OS: Windows2003
Web server: Apache 2.2.4
Perl version: ActivePerl 5.8.8 build 820
Client OS: Windows XP
Web Browser: Internet Explorer 6
Categories: Installation, Fatal error, Plugins

-- SeanCMorgan - 06 Oct 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I had trouble with the DLL version - I had to install the static version to get by a MFC / Visual Studio missing library error. And I added some dependency information - Ghostscript is also needed. See DirectGraphPluginBadFileDescriptor. Make sure that you can run "convert" from the command prompt to convert a .ps file to a .png.

The Dev version I just posted last night should be much smoother on Windows. The released version has hardcoded paths and environment variables in the helper script that are incompatible with windows.

-- GeorgeClark - 12 Oct 2008

Oh.. and regarding the antialias setting - That is the default for graphs that don't specify anything. The examples on the DirectedGraphPlugin page have some with antialias enabled and some without. So that topic will always use some antialias, partly to check out your installation.

-- GeorgeClark - 12 Oct 2008

I'm afraid that hasn't made any difference.

I'm leaving the anti-aliasing for another day, just trying to get it to work with Graphviz for now.

With debug = 1, a lot of zero-length files are created in the working/tmp directory (.log, .png, and .ps; though the .dot files look correct).

BTW, I didn't install "web fonts". Is that needed on Windows, and if so, what is that and where do I get it?

-- SeanCMorgan - 14 Oct 2008

I don't believe you need the web fonts - I didn't install them. Debug=1 causes the plugin to not delete any files at the end of the run, so the files being left behind is expected, zero length is not. The .dot file is written by the plugin, the rest are allocated by the plugin, but are built by the run of the "helper in /tools. So something is not working with tools/DirectedGraphPlugin.pl. Did you enter all of the paths in the /bin/configure setup for the plugin? Even on windows they should be all entered with forward-slash like on Linux, not in windows format. This is what I configured on my test windows box:

$TWiki::cfg{DirectedGraphPlugin}{enginePath} = 'c:/www/Graphviz2.21/bin/';
$TWiki::cfg{DirectedGraphPlugin}{magickPath} = 'C:/www/ImageMagick/';
$TWiki::cfg{DirectedGraphPlugin}{toolsPath} = 'C:/www/twiki/tools/';
$TWiki::cfg{DirectedGraphPlugin}{perlCmd} = 'C:/Perl/bin/perl.exe';
$TWiki::cfg{Plugins}{DirectedGraphPlugin}{Enabled} = 1;
$TWiki::cfg{DirectedGraphPlugin}{attachPath} = '';
$TWiki::cfg{DirectedGraphPlugin}{attachUrlPath} = '';

-- GeorgeClark - 14 Oct 2008

I've tried to break a bunch of things to find out what the symptoms are, using the new Dev version of the plugin

  • Bad perlCmd path - DirectedGraph Error (1):
  • Bad toolsPath - DirectedGraph Error (2):
  • Bad enginePath - DirectedGraph Error (9): - plus the actual error message from the command is displayed: The system cannot find the path specified.
  • Bad magickPath - DirectedGraph Error (1): on the only the antialias diagrams
  • Ghostscript not installed - DirectedGraph Error (1): on the antialias diagrams. Plus, convert a .ps to .gif from command prompt results in "Postscript delegate failed:" error.

-- GeorgeClark - 15 Oct 2008

You nailed it. So it turns out that the config.spec is incorrect where it says, On many systems this can just be the "perl" command . Even though perl is in my path, I needed to specify it as you did.

And thanks for the extra effort on the error codes. The plugin's documentation would be greatly improved by adding those error codes.

Cheers.

-- SeanCMorgan - 15 Oct 2008

Already done on my local copy - I'll check it all in and eventually get it all released.

-- GeorgeClark - 15 Oct 2008

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt debug.txt r1 manage 8.8 K 2008-10-06 - 18:58 UnknownUser  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2008-10-15 - GeorgeClark
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.