Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawn /usr/local/bin/dot ENOENT #5

Open
m-abs opened this issue Apr 18, 2016 · 6 comments
Open

Error: spawn /usr/local/bin/dot ENOENT #5

m-abs opened this issue Apr 18, 2016 · 6 comments

Comments

@m-abs
Copy link

m-abs commented Apr 18, 2016

I'm using nvm to manage my node installation.

tsviz fails on my setup, because it tries to run /usr/local/bin/dot which doesn't exist on my system.

I installed graphviz, but since it's a system package it still doesn't exist on that path.

@joaompneves
Copy link
Owner

Did you manage to solve your problem?

@m-abs
Copy link
Author

m-abs commented Aug 31, 2016

Sorry for the late response.

I haven't used tsviz since I reported this issue. But I've just tried it again and it's still an issue.

My system doesn't have the executable at /usr/local/bin/dot, the correct path is /usr/bin/dot, since it's installed via the system's package manager (Fedora 24).

I think it's in the file bin/uml-builder.js it goes wrong. It checks for win32 and in the else statement it sets setGraphVizPath("/usr/local/bin").

The path might work on *BSD, since they tend to place their packages in /usr/local.

@chrislong
Copy link

This bug also exists on Ubuntu, for the same reason. tsviz should not assume dot is installed in /usr/local/bin. Ideally, it would be able to use it wherever it is on the PATH, or at least allow an environment variable to be set to tell it where it is.

I worked around it by commenting out g.setGraphVizPath("/usr/local/bin"); in bin/uml-builder.js (line 28).

@jonek
Copy link

jonek commented Nov 22, 2016

@chrislong Thanks for the workaround! It saved my day using tsviz on Ubuntu 16.04.

@rLoka
Copy link

rLoka commented Jan 7, 2017

@chrislong If anyone wonders, uml-builer.js is in /usr/local/lib/node_modules/tsviz/bin/uml-builder.js on Ubuntu

@Axure
Copy link

Axure commented Apr 21, 2017

We should execute dot in the path instead of at a specific location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants