Trying to install version 0.1.0.post1 but not available on Azure App Service
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- cloud, data-visualization
Línea de trabajo
Comience con las versiones de requirements.txt y la llamada de plotting_function a fig.to_image; después, reproduzca los errores de instalación y de ejecución informados en Azure App Service con Python 3.12.6. Compare los paquetes Kaleido disponibles y el entorno de despliegue, y considere terminado el trabajo cuando la representación de imágenes estáticas se ejecute de forma fiable en la aplicación desplegada con una configuración compatible documentada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi,
I am using kaleido==0.1.0.post1 (which works on local) in my python plotly dash web app and deploying this on Azure App Service with the configuration of the app service as:
python: 3.12.6
pip: 24.2
And I am getting this error when deploying on Azure, which seems like it can't find this version:
ERROR: No matching distribution found for kaleido==0.1.0.post1
ERROR: Could not find a version that satisfies the requirement kaleido==0.1.0.post1 (from versions: 0.0.1rc3, 0.0.1rc4, 0.0.1rc5, 0.0.1rc6, 0.0.1rc8, 0.0.1rc9, 0.0.1, 0.0.2, 0.0.3, 0.0.3.post1, 0.1.0a2, 0.1.0a3, 0.1.0, 0.2.0rc1, 0.2.0, 0.2.1, 0.4.0rc1, 0.4.0rc2, 0.4.0rc3, 0.4.0rc4, 0.4.0rc5, 1.0.0rc0)
Out of all these version I have tried 0.2.0, 0.2.1 and both of these are leading to hang state. I have also tried 0.1.0 and this gives me an error of:
ValueError:
The kaleido executable is required by the kaleido Python library, but it was not included
in the Python package and it could not be found on the system PATH.
Searched for included kaleido executable at:
C:\Code\python.pptx.tester\.venv\Lib\site-packages\kaleido\executable\kaleido
And as I have opted to use version 1.0.0rc0 in the meantime, I am getting this when using the deployed web app:
Kaleido now requires that chrome/chromium is installed separately. Kaleido will try to detect it automatically, but the environmental error "BROWSER_PATH" can also be set.
What can I do to fix this issue (above)?
Is there any fix that I can do to deploy my app and use kaleido for static image rendering in the meantime until Kaleido2 is out? This would be very helpful, thanks!
My requirements.txt:
dash==2.17.0
numpy==1.26.4
pandas==2.1.4
dash-mantine-components==0.14.4
dash-ag-grid==31.2.0
python-dotenv==1.0.1
dash-iconify==0.1.2
dash-bootstrap-components==1.6.0
pyspark==3.5.1
pytz==2024.1
scipy==1.14.0
azure-monitor-opentelemetry==1.6.4
opentelemetry-api==1.28.1
opentelemetry-sdk==1.28.1
msal==1.30.0
python-pptx==1.0.2
# kaleido==0.1.0.post1
kaleido==1.0.0rc0
Lastly, code snippet:
import plotly.graph_objects as go
import pandas as pd
from base64 import b64encode
import plotly
def plotting_function():
fig = go.Figure()
# Some scatter plotting etc.
if save:
img_bytes = fig.to_image(format="jpeg")
encoding = b64encode(img_bytes).decode()
img_b64 = "data:image/jpeg;base64," + encoding
return img_b64
else:
return fig
- Lenguaje dominante
- Python
- Estrellas
- 504
- Forks
- 65
- Merge medio
- 6 d 9 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plotly/kaleido
-
Writing to an existing directory whose name has a dot fails with "Invalid format"Posiblemente ocupada @RaphaelFakhri la tomó hace 12 días. Abiertobug P3 size: 1
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
-
Deterministic Rendering ChallengesQuizá libre de nuevo @camdecoster la tomó hace 67 días y no hay ningún pull request abierto. Abiertoenhancement feature P2 size: 5
-
[FEATURE]: Embed custom fonts into vector exports (no system install)Posiblemente ocupada @camdecoster la tomó hace 124 días. Abiertoenhancement P3 size: 3
-
enhancement feature P3 size: 5
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
GlobalKaleidoServer is not thread-safePosiblemente ocupada @talleibman la tomó hace 249 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Todos los issues de plotly/kaleido
Issues similares
-
DBFS append mode silently overwrites existing filesPosiblemente ocupada @IlyaKhalafi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
fsspec/filesystem_spec#2429 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failurePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
volcengine/OpenViking#7014 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fedora-copr/copr#4600 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ansys/pydpf-core#3620 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día