Re: Comment on HowToUse in canviz

37 views
Skip to first unread message

can...@googlecode.com

unread,
Mar 14, 2010, 12:54:26 AM3/14/10
to can...@googlegroups.com
Comment by pixelsallover:

:~/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

can...@googlecode.com

unread,
Mar 18, 2010, 8:57:54 AM3/18/10
to can...@googlegroups.com
Comment by ryandesign.com:

@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.

can...@googlecode.com

unread,
Mar 24, 2010, 5:25:02 AM3/24/10
to can...@googlegroups.com
Comment by jmanuel.macias:

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.

can...@googlecode.com

unread,
Mar 24, 2010, 7:26:08 AM3/24/10
to can...@googlegroups.com
Comment by jmanuel.macias:

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!

can...@googlecode.com

unread,
Mar 24, 2010, 1:35:54 PM3/24/10
to can...@googlegroups.com
Comment by ryandesign.com:

Presumably you were using a Subversion older than 1.5, which will not
succeed in downloading the externals.

can...@googlecode.com

unread,
Jul 15, 2010, 2:42:45 PM7/15/10
to can...@googlegroups.com
Comment by Rockpsl76:

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

can...@googlecode.com

unread,
Jul 16, 2010, 5:15:38 AM7/16/10
to can...@googlegroups.com
Comment by ryandesign.com:

@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.

can...@googlecode.com

unread,
Jul 16, 2010, 3:07:15 PM7/16/10
to can...@googlegroups.com
Comment by Rockpsl76:

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

can...@googlecode.com

unread,
Jul 19, 2010, 4:04:23 PM7/19/10
to can...@googlegroups.com
Comment by Rockpsl76:

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.

Reply all
Reply to author
Forward
0 new messages