conda install -c conda-forge plotly python-kaleido
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 42/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- plotly, python
- Domaine
- data-visualization
Piste de recherche
Reproduisez l’échec avec les packages conda et test.py, puis comparez-le avec l’installation pip fonctionnelle. Commencez dans plotly/io/_kaleido.py, au chemin to_image indiqué dans la traceback, et examinez comment la version installée de Kaleido est détectée. La tâche est terminée lorsque les packages installés avec conda permettent à test.py de générer fig.png sans l’AttributeError.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
plotly and python-kaleido Install in a brand new Conda env
❯❯❯ conda install -c conda-forge plotly python-kaleido -y
2 channel Terms of Service accepted
Channels:
- conda-forge
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /opt/miniconda3/envs/bsa3
added / updated specs:
- plotly
- python-kaleido
The following NEW packages will be INSTALLED:
narwhals conda-forge/noarch::narwhals-1.48.0-pyhe01879c_0
packaging conda-forge/noarch::packaging-25.0-pyh29332c3_1
plotly conda-forge/noarch::plotly-6.2.0-pyhd8ed1ab_0
python-kaleido conda-forge/noarch::python-kaleido-1.0.0-pyhe01879c_0
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Packages that have been installed in the current environment
❯❯❯ conda list
# packages in environment at /opt/miniconda3/envs/bsa3:
#
# Name Version Build Channel
bzip2 1.0.8 h99b78c6_7 conda-forge
ca-certificates 2025.7.14 hbd8a1cb_0 conda-forge
choreographer 1.0.9 pyhe01879c_0 conda-forge
libexpat 2.7.1 hec049ff_0 conda-forge
libffi 3.4.6 h1da3d7d_1 conda-forge
liblzma 5.8.1 h39f12f2_2 conda-forge
libsqlite 3.50.3 hf8de324_0 conda-forge
libzlib 1.3.1 h8359307_2 conda-forge
logistro 1.1.0 pyhe01879c_0 conda-forge
narwhals 1.48.0 pyhe01879c_0 conda-forge
ncurses 6.5 h5e97a16_3 conda-forge
openssl 3.5.1 h81ee809_0 conda-forge
orjson 3.11.0 py312h6f58b40_0 conda-forge
packaging 25.0 pyh29332c3_1 conda-forge
pip 25.1.1 pyh8b19718_0 conda-forge
plotly 6.2.0 pyhd8ed1ab_0 conda-forge
python 3.12.11 hc22306f_0_cpython conda-forge
python-kaleido 1.0.0 pyhe01879c_0 conda-forge
python_abi 3.12 8_cp312 conda-forge
readline 8.2 h1d1bf99_2 conda-forge
setuptools 80.9.0 pyhff2d567_0 conda-forge
simplejson 3.20.1 py312hea69d52_0 conda-forge
tk 8.6.13 h892fb3f_2 conda-forge
tzdata 2025b h78e105d_0 conda-forge
wheel 0.45.1 pyhd8ed1ab_1 conda-forge
Create a file named test.py
import plotly.graph_objects as go
fig = go.Figure(data=go.Scatter(y=[2, 1, 4, 3]))
fig.write_image("fig.png")
❯❯❯ python3 test.py
/Users/gh/Desktop/TestFile/test.py:6: DeprecationWarning:
Support for Kaleido versions less than 1.0.0 is deprecated and will be removed after September 2025.
Please upgrade Kaleido to version 1.0.0 or greater (`pip install 'kaleido>=1.0.0'` or `pip install 'plotly[kaleido]'`).
Traceback (most recent call last):
File "/Users/gh/Desktop/TestFile/test.py", line 6, in <module>
fig.write_image("fig.png")
File "/opt/miniconda3/envs/bsa3/lib/python3.12/site-packages/plotly/basedatatypes.py", line 3895, in write_image
return pio.write_image(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/envs/bsa3/lib/python3.12/site-packages/plotly/io/_kaleido.py", line 510, in write_image
img_data = to_image(
^^^^^^^^^
File "/opt/miniconda3/envs/bsa3/lib/python3.12/site-packages/plotly/io/_kaleido.py", line 398, in to_image
img_bytes = scope.transform(
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'transform'
Install the requirement package through pip in a brand-new Conda environment: 'pip install kaleido plotly', and then execute the command:' python3 test.py', which will get the correct graph and will not cause any errors in the process.
- Langage dominant
- Python
- Étoiles
- 504
- Forks
- 65
- Merge moyen
- 6 j 9 h
- PR mergées (30 j)
- 2
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de plotly/kaleido
-
Writing to an existing directory whose name has a dot fails with "Invalid format"Peut-être pris @RaphaelFakhri l’a pris il y a 15 jours. Ouvertebug P3 size: 1
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
-
Deterministic Rendering ChallengesPeut-être à nouveau libre @camdecoster l’a pris il y a 70 jours, et aucune pull request n’est ouverte. Ouverteenhancement feature P2 size: 5
-
[FEATURE]: Embed custom fonts into vector exports (no system install)Peut-être pris @camdecoster l’a pris il y a 127 jours. Ouverteenhancement P3 size: 3
plotly/kaleido#464 · 10 commentaires · 1 personne assignée ·
-
enhancement feature P3 size: 5
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
-
GlobalKaleidoServer is not thread-safePeut-être pris @talleibman l’a pris il y a 252 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Toutes les issues de plotly/kaleido
Issues similaires
-
docs size:S
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
strawberry-graphql/strawberry#4794 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
dataforgoodfr/cetolog#21 ·
-
security_citations_test fails against ecc 2026.11.6: SECURITY.md quotes ecc v2026.11.2's linesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
btclib-org/btclib#2932 ·
Les mainteneurs répondent en général sous 1 jour