orca icon indicating copy to clipboard operation
orca copied to clipboard

Unable to install on Heroku with Pip or npm

Open mgug01 opened this issue 5 years ago • 4 comments

This is related to issue #194- Plotly-orca works flawlessly on my local machine, but unfortunately after following every thread I can find on getting this up on a server like Heroku- I'm unable to get this working.

So far I've successfully installed electron & Orca within Heroku, I've installed dependencies through a APT buildpack and Aptfile but still continually receive the following error in Django:

The orca executable is required in order to export figures as static images, but the executable that was found at '/app/node_modules/.bin/orca' does not seem to be a valid plotly orca executable. Please refer to the end of this message for details on what went wrong.

I would definitely prefer to continue using Plotly if possible, though without the ability to export an image, I may unfortunately need to look elsewhere.

mgug01 avatar May 01 '20 03:05 mgug01

It should be possible to pack orca into Python wheel as data file - https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files

If orca could be compiled into a static binary, that would be the easiest way.

abitrolly avatar May 20 '20 14:05 abitrolly

If orca could be compiled into a static binary, that would be the easiest way.

@abitrolly this is something we are looking into to make it easy to install Orca anywhere via pip. Stay tuned!

antoinerg avatar May 20 '20 15:05 antoinerg

@gugmi01 about heroku, one will need all the dependencies required to run chromium browser AND xvfb to run things in a headless manner (see http://elementalselenium.com/tips/38-headless). Usually this is done with xvfb-run -a orca graph ....

I hope this helps!

antoinerg avatar May 20 '20 15:05 antoinerg

@antoinerg Chrome has the --headless option that doesn't need xvfb https://developers.google.com/web/updates/2017/04/headless-chrome#screenshots

abitrolly avatar May 20 '20 16:05 abitrolly