-
Notifications
You must be signed in to change notification settings - Fork 43
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
Docker Alpine Image : Could not find a version that satisfies the requirement kaleido (from versions: none) #34
Comments
Hi @JaredOzzy, the first easy thing to try is updating
If you want to try to install from a pip file directly, I think you're missing |
Will give that a shot, I was using the latest pip version too, i still get the following.
I've added the RUN pip install https:// and have received the following error so yeah not available on alpine? |
Ok, well it's worth double checking. But I did just find an interesting note at the end of the platform-compatibility-tag specification: https://packaging.python.org/specifications/platform-compatibility-tags/
I'm not familiar enough with Alpine linux to understand why it wouldn't be included in the standard linux platform tag specification, but maybe something is going on here. Could you add the output of in your container? import platform
print(platform.machine())
print(platform.architecture())
print(platform.platform()) Can you install numpy alright? If so, I'm wondering which of these files pip chooses (https://pypi.org/project/numpy/#files). |
Oh, Alpine supports a bunch of architectures: https://alpinelinux.org/downloads/ Right now, I'd only expect Kaleido to work with the |
Just went through a massive mission to get numpy installed, took ages for my containers to build too.
i had to add many deps in the dockerfile for the image to install
Here is the platform results
|
Ok, thanks for that info. The reason your numpy install took so long is that pip pulled in the numpy source bundle ( A little searching turned up a helpful article that matches what you're seeing: https://pythonspeed.com/articles/alpine-docker-python/
FWIW, the article's conclusion is "Don’t use Alpine Linux for Python images". Is changing the image base an option for you? |
it is an option, but damn i don't think its worth it at this moment, ill just go with matplotlib for now instead as the image is easy to save . still have to install numpy and go through all the issues though but yeah, alpine hasn't really been an issue for me at the moment. ill try to convert it perhaps... |
It must be an Alpine thing.
|
Greetings, is there any update on this? I need to provide kaleido to my alpine docker image :( |
I've figured it out, just install miniconda3/miniforge within alpine dockerfile and then you can install kaleido from anaconda Note: do not use forge as channel, I installed miniforge and just do $ RUN conda install -y python-kaleido; It's a lot of effort for just one package but until now I couldn't figure out an easier solution. Maybe an APK should be published for kaleido in order to avoid all this mess Regards! |
Hey, any solution? I'm facing a similar issue while installing dash |
Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson |
my dockerfile does the following thats relevent:
i get the same issue when i added kaleido the the requirements.txt and remove the
RUN pip install kaleido
command.I have also tried adding versions, i get the same issues.
Also Tried running the command
RUN install https://github.com/plotly/Kaleido/releases/download/v0.0.3/kaleido-0.0.3-py2.py3-none-manylinux2014_x86_64.whl
all i want is to be able to save a plotly graph to a file but orca is crazy mission with docker, was hoping the recommended kaleido would be less of a mission to install and get working
The text was updated successfully, but these errors were encountered: