Giter Club home page Giter Club logo

heroku-buildpack-graphviz's Introduction

Heroku Buildpack: Graphviz

Install Graphviz on Heroku.

Description

This buildpack installs Graphviz on Heroku and makes it available to your Heroku application.

The installed version of Graphviz depends on the Heroku stack (which is automatically detected by the buildpack):

The Graphviz executables are installed to the following directory:

/app/.heroku-buildpack-graphviz/usr/bin

The above directory is added to the PATH environment variable, so Graphviz commands like dot and neato are directly available to your app without specifying their path.

Install

For adding the buildpack in addition with other buildpacks, use:

heroku buildpacks:add https://github.com/weibeld/heroku-buildpack-graphviz

For setting the buildpack as the only buildpack, use:

heroku buildpacks:set https://github.com/weibeld/heroku-buildpack-graphviz

You can verify that the buildpack has been added with:

heroku buildpacks

Verify

After deploying your application with the buildpack at least once, you can verify the installation of Graphviz with:

heroku run dot -V

The above command runs dot -V on the application dyno, that is, in the same environment in which your application is running. That means, if the above command succeeds, your application can use Graphviz commands such as dot in the same way.

Develop

For implementation notes, see DEVELOPMENT.md.

License

Licensed under the MIT License. See LICENSE.md file.

heroku-buildpack-graphviz's People

Contributors

dsander avatar savv avatar syphar avatar ufo2mstar avatar vanities avatar weibeld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

heroku-buildpack-graphviz's Issues

error while loading shared libraries: libgvc.so.6

Hi @weibeld ,

I am using this buildpack and noticed that I am getting this error:

[stderr]
b'dot: error while loading shared libraries: libgvc.so.6: cannot open shared object file: No such file or directory\n'
[stdout]
b''

I checked an old issue: #5 but did not find it helpful in my current setup:

Heroku-18
Graphviz 2.40.1

Do you think, that this is a Heroku-18 stack issue and we should appeal to them?

Thanks,
Rust

error while loading shared libraries: libgvc.so.6

After including in buildpack and testing in Heroku console with dot -V it returns:

dot: error while loading shared libraries: libgvc.so.6: cannot open shared object file: No such file or directory

`dot` support during the build phase

In order for me to use dot in the build phase (during my jekyll build for example. I need to maintain a list of ENV var's to keep up to date.

Example

# Ensure dot is in our path at build time and runtime in Heroku
if [ -d "$(pwd)/heroku-buildpack-graphviz/usr/bin" ]; then

  BASE="$(pwd)/heroku-buildpack-graphviz"
  export LD_LIBRARY_PATH=${BASE}/usr/lib:${BASE}/usr/lib/x86_64-linux-gnu/:\$LD_LIBRARY_PATH

  PATH="$(pwd)/heroku-buildpack-graphviz/usr/bin:$PATH"
fi

Would this kind of a change be a welcome PR?

error while loading shared libraries: libgvpr.so.2

I've seen similar errors but not with this library and the others #5 and #9 are closed without a resolution:

RuntimeError Error from ["/app/heroku-buildpack-graphviz/usr/bin/gvpr", "-f", "/app/vendor/bundle/ruby/2.5.0/gems/ruby-graphviz-1.2.4/lib/ext/gvpr/dot2ruby.g", "-a", "-", "/tmp/dot2ruby.rb20191025-23-1ubgdu8"]:
/app/heroku-buildpack-graphviz/usr/bin/gvpr: error while loading shared libraries: libgvpr.so.2: cannot open shared object file: No such file or directory

Troubleshooting

$ dot -V
dot - graphviz version 2.40.1 (20161225.0304)
$ ls /app/heroku-buildpack-graphviz/usr/lib/x86_64-linux-gnu | grep libgvc
libgvc.so.6
libgvc.so.6.0.0
$ echo $LD_LIBRARY_PATH
/app/heroku-buildpack-graphviz/usr/lib:/app/heroku-buildpack-graphviz/usr/lib/x86_64-linux-gnu/:
$ /app/heroku-buildpack-graphviz/usr/bin/gvpr
/app/heroku-buildpack-graphviz/usr/bin/gvpr: error while loading shared libraries: libgvpr.so.2: cannot open shared object file: No such file or directory
$ ldd /app/heroku-buildpack-graphviz/usr/bin/gvpr
	linux-vdso.so.1 (0x00007ffdedba4000)
	libgvpr.so.2 => not found
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4454a69000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f445505c000)

I'll keep troubleshooting and update the issue if I found relevant information or a fix.

Can't create image on Heroku

Hi,

First, thank you for your buildplack!

What is the best way to generate an image with GraphViz, then display it?
How it will look if we use it through tmp directory?

Cheers

ExecutableNotFound appearing during dot run

Hey @weibeld,

We've experiencing some issues with using graphviz buildpack since two days.
I'm assuming this related to commit 8054a8e.

Part of the traceback:

Exception occurred:
  File "/app/.heroku/python/lib/python3.6/site-packages/graphviz/backend.py", line 126, in render
    raise ExecutableNotFound(args)
graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tsvg', '-O', '/tmp/tmpq4eo0c0j/accommodation'], make sure the Graphviz executables are on your systems' PATH

I will try to investigate more, but maybe you already have an idea about what could be wrong here.

And many thanks for package!

heroku-22 image?

It would be great if we could have one!

Edit: looks like it only needs readme and repo url updates to get this working, I may have time this weekend to submit a PR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.