plotly / Kaleido

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

can't install kaleido with pipenv #118

Closed dustinfarris closed 3 years ago

dustinfarris commented 3 years ago

on macOS Big Sure using python 3.7.9 installed via pyenv

pipenv install kaleido

in a fresh pyenv virtual env, pipenv install kaleido fails with

Adding kaleido to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!

CRITICAL:pipenv.patched.notpip._internal.index.package_finder:Could not find a version that satisfies the requirement kaleido 
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for kaleido==0.2.1 (from -r /var/folders/mh/9y6sr2810hl7hbb2wzqrwn080000gq/T/pipenvjly532rtrequirements/pipenv-m3_gm595-constraints.txt (line 3)

this only seems to be an issue when locking

pipenv install kaleido --skip-lock

works fine.

dustinfarris commented 3 years ago

This is due to Big Sur reporting its version differently, causing pipenv to not find a matching wheel. Latest pip seems to have been updated for this, but latest pipenv has not.

export SYSTEM_VERSION_COMPAT=1

instructs macos to report the version in the previous format and then pipenv works.