:~/canviz-read-only$ sudo make examples
[sudo] password for anup:
dirname: missing operand
Try `dirname --help' for more information.
dirname: missing operand
Try `dirname --help' for more information.
find: `/share/graphviz/graphs': No such file or directory
examples/hello_world/graph.gv -Txdot -oexamples/hello_world/graph-xdot.gv
make: execvp: examples/hello_world/graph.gv: Permission denied
make: *** [examples/hello_world/graph-xdot.gv] Error 127
please help??
For more information:
http://code.google.com/p/canviz/wiki/HowToUse
@pixelsallover, I suspect Graphviz is not installed, or the path to "dot"
is not in your $PATH. Please install Graphviz or fix your $PATH. If that's
not it, please write to the canviz discussion group for more help; comments
in the wiki are not a great place to have a discussion.
I got the examples installed (no errors), but something is wrong with them.
I noticed libraries prototype/prototype.js and path/path.js must be
downloaded apart, but putting them in place does not solve the problem.
I see the interface and the lists filled with the examples, but any draw I
select I only see a "Loading... " message.
My setup is under a (somewhat old) Fedora 8 using graphviz-2.14, should
this be an impediment?
any help on debugging this?
jose.
Sorry for my previous message: I should have read the FAQ before. My
problem was with subversion not downloading necessary files, I guess. After
checking out from other machine and copying the latest code to the old
Fedora 8, everything started to work as it should.
Anyway: thanks!
Presumably you were using a Subversion older than 1.5, which will not
succeed in downloading the externals.
I'm trying to access canviz from a js file. When I make a call to
myCanviz.load("test.dot")...
I'm getting an error on line 464
-> $('debug_output') is null
If I comment out that line I get an error at line 396
-> this.getAttr('bb')
bb does not exist in this.
Tracing through the parsing code, the graph seems to be getting parsed
ok. Any clue on this bb attribute? And where is $('debug_output')
supposed to get set? I don't see it defined anywhere in canviz.js
@Rockpsl76: canviz.js assumes there is a DOM element on the page that has
the id "debug_output", and writes its debug output there. It's clearly
wrong for canviz.js to assume this, but that's what it does, for now.
Create a div with that id on your page if you'd like to see debug output,
and if you don't, then commenting out those lines could be fine.
Suggestions on how to fix this generally are appreciated, though the
discussion group would be a better place than these wiki comments to have
that discussion.
bb should exist ("bb" means "bounding box"). What kind of file are you
passing to canviz -- is it a file that has been processed with "dot -Txdot"
(or "neato -Txdot", etc.)? It needs to be.
I grabbed it off the graphviz website, but no it probably wasn't processed
with one of those. I'll see if I can find a neato output file.
Thanks
Thanks. Running it through dot (and/or neato) did the trick. Works
great :) I just popped in a debug_output div and hid it instead of mucking
with your code.