plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
MIT License
378 stars 39 forks source link

Installation issue #140

Closed cubocicloide closed 4 months ago

cubocicloide commented 2 years ago

I am trying to install kaleido in a docker image. The dockerfile is as follows:

FROM python:3.9-alpine

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV CRYPTOGRAPHY_DONT_BUILD_RUST 1

RUN apk update \
    && apk add --virtual build-deps gcc make python3-dev musl-dev \
    && apk add --no-cache libffi-dev postgresql-client postgresql-contrib postgresql-dev bash git curl g++ libxslt-dev linux-headers coreutils \
    && apk add build-base libzmq zeromq-dev jpeg-dev zlib-dev libjpeg cairo-dev cairo cairo-tools pango-dev gdk-pixbuf-dev fontconfig gdal geos

RUN apk add --no-cache make
RUN apk add --update netcat-openbsd

ADD ./requirements.txt /tmp/

# Install PyPi dependencies
WORKDIR /tmp
RUN pip install --upgrade pip && pip install Cython==0.29.24 && pip install kaleido
RUN pip install uvicorn[standard]==0.14.0
RUN pip install -r requirements.txt

RUN apk del build-deps

ADD . /code/

RUN mkdir -p /storage/static
RUN mkdir -p /storage/media

RUN chmod -R a+rw /storage

ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh

ADD worker-entrypoint.sh /
RUN chmod +x /worker-entrypoint.sh

WORKDIR /code/

EXPOSE 8000
EXPOSE 8001

However, when I run docker-compose up, the process exits with the following error:

ERROR: Could not find a version that satisfies the requirement kaleido (from versions: none)
ERROR: No matching distribution found for kaleido

NOTE: I am running docker on a Mac with Monterey OS

kelleyrw commented 2 years ago

I'm having the same error; however, I'm just trying to pip install from plan virtual env.

image

env:

image image
cubocicloide commented 2 years ago

I was able to get it working by changing the definition of my Dockerfile, which is now based on python:3.9 instead of python:3.9-alpine.

gvwilson commented 4 months ago

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

kgskgs commented 1 month ago

so where are the news? still cannot install on alpine