Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SergeyHein opened this issue Mar 28, 2024 · 7 comments
Open

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

SergeyHein opened this issue Mar 28, 2024 · 7 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@SergeyHein
Copy link

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
       7071│             links.append(link)
       7273if not links:
    →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       7576# Get the best link
       77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       78│

Cannot install kaleido.

.......> 
@tvdboom
Copy link

tvdboom commented Apr 5, 2024

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
Copy link

alexdashkov commented Apr 29, 2024

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

@gvwilson gvwilson self-assigned this Jul 26, 2024
@gvwilson
Copy link
Collaborator

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

@zndr27
Copy link

zndr27 commented Jul 29, 2024

having the same issue

@jonded94
Copy link

jonded94 commented Aug 2, 2024

This was because of the way that the release of 0.2.1.post1 was done. The only available wheel (https://pypi.org/project/kaleido/0.2.1.post1/#files) is py2.py3-none-manylinux2014_armv7l compatible, while wheels of all other platforms are in version 0.2.1.

Since the only commit between the two different versions is one enabling ARM builds (v0.2.1...v0.2.1.post1), why not simply push the 0.2.1 wheels into the 0.2.1.post1 release? With the current way, nobody using poetry (or other package manager with a proper locking mechanism) can use this project in a platform-independent way because, depending on platform, one has to use either one or the other kaleido version.
Or better yet, do a proper 0.2.2 release which contains all wheels? This is what basically the entire rest of the Python community is doing. I'm a bit surprised that this can take weeks?

@gvwilson gvwilson removed their assignment Aug 3, 2024
@gvwilson gvwilson added bug something broken P3 not needed for current cycle labels Aug 14, 2024
@carschandler
Copy link

Also an issue using uv

@devnoname120
Copy link

Just pin the version:

poetry add 'kaleido == 0.2.1'

jvcarli added a commit to jvcarli/femder that referenced this issue Sep 26, 2024
The Kaleido version was not explicitly defined in requirements/runtime_requirements.txt.
However, version v0.2.1.post1 (the latest version as of this commit) fails to install
with some package managers, such as Poetry and UV.

As a result, Kaleido is now fixed to version v0.2.1,
meaning the latest available version for the package is v0.2.1 instead of v0.2.1.post1.

This change will have no impact on most users,
as v0.2.1.post1 only adds support for ARM32 architectures.

SEE: plotly/Kaleido#176
SEE: https://github.com/plotly/Kaleido/releases/tag/v0.2.1.post1
jvcarli added a commit to jvcarli/femder that referenced this issue Sep 26, 2024
The Kaleido version was not explicitly defined in requirements/runtime_requirements.txt.
However, version v0.2.1.post1 (the latest version as of this commit) fails to install
with some package managers, such as Poetry and UV.

As a result, Kaleido is now fixed to version v0.2.1,
meaning the latest available version for the package is v0.2.1 instead of v0.2.1.post1.

This change will have no impact on most users,
as v0.2.1.post1 only adds support for ARM32 architectures.

SEE: plotly/Kaleido#176
SEE: https://github.com/plotly/Kaleido/releases/tag/v0.2.1.post1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

8 participants