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

Unable to poetry add functime #14

Closed
FerPapi opened this issue Jul 20, 2023 · 4 comments
Closed

Unable to poetry add functime #14

FerPapi opened this issue Jul 20, 2023 · 4 comments
Labels
build Build system and dependencies

Comments

@FerPapi
Copy link

FerPapi commented Jul 20, 2023

Hey guys, I'm able to install functime as a pip package, but unable to add it with the poetry package management.

The problem lies with kaleido

(tsboost-py3.10) ferpapi tsboost $ poetry add functime
Using version ^0.2.4 for functime

Updating dependencies
Resolving dependencies... (4.2s)

Writing lock file

Package operations: 22 installs, 0 updates, 0 removals

  • Installing entrypoints (0.4)
  • Installing locket (1.0.0)
  • Installing mdurl (0.1.2)
  • Installing toolz (0.12.0)
  • Installing zipp (3.16.2)
  • Installing asciitree (0.3.3)
  • Installing fasteners (0.18)
  • Installing importlib-metadata (6.8.0)
  • Installing markdown-it-py (3.0.0)
  • Installing numcodecs (0.11.0)
  • Installing partd (1.4.0)
  • Installing pygments (2.15.1)
  • Installing pynndescent (0.5.8)
  • Installing dask (2023.7.0)
  • Installing flaml (1.2.4)
  • Installing kaleido (0.2.1.post1): Failed

  RuntimeError

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

  at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:109 in choose_for
      105│
      106│             links.append(link)
      107│
      108│         if not links:
    → 109│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      110│
      111│         # Get the best link
      112│         chosen = max(links, key=lambda link: self._sort_key(package, link))
      113│

  • Installing polars (0.18.7)
  • Installing pylance (0.5.8)
  • Installing rich (13.4.2)
  • Installing umap-learn (0.5.3)
  • Installing zarr (2.15.0

any clues?

@topher-lo topher-lo added the build Build system and dependencies label Jul 20, 2023
@topher-lo
Copy link
Contributor

Haven't tested this with poetry yet. But I think we can make kaleido an optional dependency.

@jvdd
Copy link

jvdd commented Jul 21, 2023

FYI @topher-lo & @FerPapi

Had a similar issue with our plotly-resampler tool - basically you need to lock the kaleido version to 0.2.1.

See: plotly/Kaleido#156

How we did this in plotly-resampler (which uses poetry as dependency manager as well) ⬇️

https://github.com/predict-idlab/plotly-resampler/blob/b712c6772934e261be56ef996d95138f42407486/pyproject.toml#L49-L50

topher-lo pushed a commit that referenced this issue Jul 21, 2023
Should resolve poetry install issue: #14
@topher-lo
Copy link
Contributor

topher-lo commented Jul 21, 2023

Should be resolved by 9c0bddf. @FerPapi this will be part of new release on Monday. Thanks @jvdd!

@FerPapi
Copy link
Author

FerPapi commented Jul 21, 2023

fantastic! thank you very much

@FerPapi FerPapi closed this as completed Jul 21, 2023
topher-lo pushed a commit that referenced this issue Aug 4, 2023
Should resolve poetry install issue: #14
topher-lo pushed a commit that referenced this issue Aug 4, 2023
Should resolve poetry install issue: #14
topher-lo pushed a commit that referenced this issue Dec 19, 2023
Should resolve poetry install issue: #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system and dependencies
Projects
None yet
Development

No branches or pull requests

3 participants