Home » Images » Image_GraphViz » Bug #3349
Error in GraphViz
Details
| Submitted | 2005-02-01 17:14 UTC |
|---|---|
| From | jean-louis dot calmette at laposte dot fr |
| Assigned | vmg |
| Status | Bogus |
| Package | Image_GraphViz |
| PHP Version | 4.3.8 |
| OS | win 2000 SP4 |
| Roadmaps | (Not assigned) |
Comments
[2005-02-01 17:14 UTC] jean-louis dot calmette at laposte dot fr
Description:
------------
variables_order = "GPCS"
$graph->image("jpg");
Reproduce code:
---------------
require_once 'Image/GraphViz.php';
$graph = new Image_GraphViz();
$graph->addNode(
'Node1',
array(
'URL' => 'http://link1',
'label' => 'This is a label',
'shape' => 'box'
)
);
$graph->addNode(
'Node2',
array(
'URL' => 'http://link2',
'fontsize' => '14'
)
);
$graph->addNode(
'Node3',
array(
'URL' => 'http://link3',
'fontsize' => '20'
)
);
$graph->addEdge(
array(
'Node1' => 'Node2'
),
array(
'label' => 'Edge Label'
)
);
$graph->addEdge(
array(
'Node1' => 'Node2'
),
array(
'color' => 'red'
)
);
$graph->image("jpg");
Expected result:
----------------
Actual result:
--------------
********** ERREUR **********
Warning: fopen(C:\WINNT\TEMP\gra2D08.tmp.jpg): failed to open stream: No such file or directory in d:\www\pear\Image\GraphViz.php on line 192
[2005-02-02 08:50 UTC] jean-louis dot calmette at laposte dot fr
Resolved using
/**
* Path to GraphViz/dot command
*
* @var string
*/
var $dotCommand = 'e:\\intranet\\att\\graphviz\\bin\\dot';
/**
* Path to GraphViz/neato command
*
* @var string
*/
var $neatoCommand = 'e:\\intranet\\att\\graphviz\\bin\\dotneato';
[2006-06-26 17:08 UTC] pilot1957 at yahoo dot com
This is not actually a bug. This just occurs when the GraphViz package in not installed, or is installed and not in the path.
Note that to use this module you need to install the GraphViz package on you system.
You can get it from http://www.graphviz.org/
Hope this helps...
[2006-06-27 07:21 UTC] sebastian at php dot net
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PEAR.
See previous comment(s).