plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
363 stars 36 forks source link

Installation of Kaleido using poetry macOS Monterey (M1) #125

Closed jpetot closed 2 months ago

jpetot commented 2 years ago

Installation of kaleido isn't working using poetry, but working with pip.

poetry add kaleido


Using version ^0.2.1 for kaleido

Updating dependencies Resolving dependencies... (0.1s)

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

• Installing kaleido (0.2.1.post1): Failed

RuntimeError

Unable to find installation candidates for kaleido (0.2.1.post1)

at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for 68│ 69│ links.append(link) 70│ 71│ if not links: → 72│ raise RuntimeError( 73│ "Unable to find installation candidates for {}".format(package) 74│ ) 75│ 76│ # Get the best link


And with `pip`:
> `pip install kaleido`

Collecting kaleido Using cached kaleido-0.2.1-py2.py3-none-macosx_11_0_arm64.whl (85.8 MB) Installing collected packages: kaleido Successfully installed kaleido-0.2.1 Failed to add packages, reverting the pyproject.toml file to its original content.



I am using:
- macOS Monterey (M1)
- Poetry version 1.1.12

Related thread : #70 
kpostekk commented 2 years ago

I have the same issue on Intel based Mac. Solution with pip helped me

josteinbf commented 2 years ago

Same issue here. By running pip install kaleido like suggested in previous comments, I noticed that pip is installing version 0.2.1, which is different from 0.2.1.post1 that poetry tries to install. I then tried forcing poetry to use the same version as pip,

poetry add "kaleido@0.2.1"

which seems to work.

I don't know exactly what's going on here, but for me this is a useful workaround, at least.

LunarLanding commented 2 years ago

On M1 using conda installation fails due to mathjax 2.7.* not being available on osx-arm64 ( https://github.com/conda-forge/mathjax-feedstock/issues/16 )

feliciov commented 2 years ago

I'm having the same issue using poetry on Manjaro. Poetry goes for 0.2.1.post1 if not forced and fails. Adding the 0.2.1v, as pointed by josteinbf, did worked too.

jordankbartos commented 1 year ago

I'm also experiencing this issue using poetry. My project depends on a project that depends on kaleido>=0.2.1. After running poetry lock --no-update, my poetry.lock file has kaleido pinned to version 0.2.1.post1. Then installation fails because a version 0.2.1.post1 cannot be found in PyPI.

image

image

brunomcr commented 1 year ago

install a previous version:

poetry add kaleido==0.2.1

gvwilson commented 2 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