plotly / Kaleido

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

Can't install using poetry on Windows 11 Python 3.11 #176

Open SergeyHein opened 3 months ago

SergeyHein commented 3 months ago

Can't install using poetry on Windows 11 Python 3.11


PS .......> poetry add kaleido 
Using version ^0.2.1.post1 for kaleido

Updating dependencies
Resolving dependencies... (0.5s)

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 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chooser.py:74 in choose_for
       70│
       71│             links.append(link)
       72│
       73│         if not links:
    →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       75│
       76│         # Get the best link
       77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       78│

Cannot install kaleido.

.......> 
tvdboom commented 3 months ago

I am having the same issue with pdm

Synchronizing working set with resolved packages: 0 to add, 1 to update, 0 to remove                                                                                                                                                                                                                                  

  ✖ Update kaleido 0.2.1 -> 0.2.1.post1 failed
Retry failed jobs
  ✖ Update kaleido 0.2.1 -> 0.2.1.post1 failed

ERRORS:
update kaleido failed:
Traceback (most recent call last):
  File "C:\Users\Mavs\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mavs\Documents\Python\ATOM\venv311\Lib\site-packages\pdm\installers\synchronizers.py", line 303, in update_candidate
    self.manager.overwrite(dist, can)
  File "C:\Users\Mavs\Documents\Python\ATOM\venv311\Lib\site-packages\pdm\installers\manager.py", line 55, in overwrite
    installed = self.install(candidate)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mavs\Documents\Python\ATOM\venv311\Lib\site-packages\pdm\installers\manager.py", line 30, in install
    prepared.get_cached_package(), self.environment, prepared.direct_url(), self.use_install_cache
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mavs\Documents\Python\ATOM\venv311\Lib\site-packages\pdm\models\candidates.py", line 404, in get_cached_package
    self._obtain(allow_all=False)
  File "C:\Users\Mavs\Documents\Python\ATOM\venv311\Lib\site-packages\pdm\models\candidates.py", line 466, in _obtain
    raise CandidateNotFound(
pdm.exceptions.CandidateNotFound: No candidate is found for `kaleido` that matches the environment or hashes
alexdashkov commented 2 months ago

I have the same problem with poetry on a mac m1 in a debian docker image with python 3.12. However I can install version 0.2.1