orca: Why plotly-orca is unable to install via pip?
I just want to know, why is that plotly-orca
not available in PyPi
.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 34
- Comments: 27 (3 by maintainers)
Commits related to this issue
- Make kaleido a dev-requirment and to use for image writing By default it seems to use orca but it can't be installed via pip: see, https://github.com/plotly/orca/issues/194, but maybe someday, https:... — committed to winksaville/py-taperable-helix by winksaville 4 years ago
- Make kaleido a dev-requirment to use for image writing By default plotly seems to use orca, but it can't be installed via pip. See, https://github.com/plotly/orca/issues/194, but maybe someday, https... — committed to winksaville/py-taperable-helix by winksaville 4 years ago
Good news! Orca is no longer really the recommended way to do static image export with Plotly đ
We have a new,
pip
-installable tool called Kaleido which is superior to Orca in every way, please check it out: https://medium.com/plotly/introducing-kaleido-b03c4b7b1d81it would be nice if some standard method of installation for platform dependent components like rpm/deb packages was supported.
context: I want to save an image to disk, which I expect to be simple.
Current install methods are giving me problems: 1- currently using pip to manage dependencies not conda, not planning to learn conda, not planning to move the entire project to conda to save an image 2- npm is not working 3- appimage is bizar, I donât intent to have a sub dependency of a library in a docker container to load kernel modules in order for me to save an image to disk. The work around is unclear and too much work to get an image from the screen to the disk.
if anyone finds a way to include orca in a Heroku/Google App Engine/AWS Beanstalk with dash/flask as webservers, please share. As it canât be installed through pip (using requirements.txt) I couldnât find a way to use it on those engines
Running
npm install -g electron@1.8.4 --unsafe-perm=true --allow-root
can solve the problem.Orca is a platform dependent command line executable (not a Python shared library like numpy for example) and when we were focused on packaging it we werenât able to find a clear approach to distribute this kind of executable using pip.
Orca is somewhat like graphviz (the executable, not the python wrapper) or git, both of which are distributed as conda packages but not as pip packages (as far as I know at least).
That said, if anyone has advice or examples of distributing platform specific command line applications using PyPI, weâre definitely open to it!
@meysampgâs suggestion:
I slightly changed it to
Which installed orca to
usr/bin/orca
but still failed in python:Ubuntu installation without conda / npm
wget
from Orcaâs release page. At the time of writing it was:wget https://github.com/plotly/orca/releases/download/v1.2.1/orca-1.2.1-x86_64.AppImage
Yeah, pip install -U kaleido it works for me . Thanks a lot
Thank you @DannyDannyDanny. It was very useful !
it works exactly as I wanted. thanks a lot đ