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

0.19.2 install error when using poetry, pdm on Ubuntu #2848

Closed
Troubladore opened this issue Sep 5, 2024 · 4 comments · Fixed by #2856
Closed

0.19.2 install error when using poetry, pdm on Ubuntu #2848

Troubladore opened this issue Sep 5, 2024 · 4 comments · Fixed by #2856
Assignees
Labels
binding/python Issues for the Python package bug Something isn't working

Comments

@Troubladore
Copy link

Troubladore commented Sep 5, 2024

Environment

Delta-rs version: 0.19.2

Binding:

Environment:

  • Cloud provider:
  • OS: Ubuntu 22.04
  • Other: Python 3.11.9, 3.12.2; Poetry or PDM

Bug

What happened: when running command: "poetry add deltalake", I get error:


Updating dependencies
Resolving dependencies... (0.5s)

Package operations: 3 installs, 0 updates, 0 removals

  - Installing numpy (2.1.1)
  - Installing pyarrow (17.0.0)
  - Installing deltalake (0.19.2): Failed

  RuntimeError

  Unable to find installation candidates for deltalake (0.19.2)

  at ~/.local/pipx/venvs/poetry/lib/python3.12/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 deltalake.

What you expected to happen: deltalake to be added to my venv

How to reproduce it: using any working repo, with a local poetry venv based on python 3.12.2 or 3.11.9, and run the "poetry add deltalake" command. Or, with the same repo configured using pdm, run "pdm add deltalake".

More details:
Reverting to 0.19.1 works for python 3.12.2 and 3.11.9, for both poetry and pdm

@Troubladore Troubladore added the bug Something isn't working label Sep 5, 2024
@ldacey
Copy link
Contributor

ldacey commented Sep 6, 2024

Same with uv in a amd64 Docker container

@ion-elgreco
Copy link
Collaborator

Python 0.19.2 wheels failed due to issue with openssl openssl/openssl#25367

Unfortunately I don't have time to fix this

@Troubladore
Copy link
Author

No worries, reverting to prev version is fine. openssl will work itself out eventually - thanks for verifying, and for all your contributions to the project!

@rtyler rtyler added the binding/python Issues for the Python package label Sep 6, 2024
@rtyler rtyler self-assigned this Sep 6, 2024
rtyler added a commit that referenced this issue Sep 6, 2024
…inux release

This change enables the use of Rustls for the manylinux Python wheel,
which was originally disabled in #1224. That issue was only affecting MacOS
and has likely since been resolved.

The switch from openssl motivated by the issue described in
openssl/openssl#25367

Closes #2848
rtyler added a commit that referenced this issue Sep 6, 2024
…inux release

This change enables the use of Rustls for the manylinux Python wheel,
which was originally disabled in #1224. That issue was only affecting MacOS
and has likely since been resolved.

The switch from openssl motivated by the issue described in
openssl/openssl#25367

Closes #2848
rtyler added a commit to rtyler/delta-rs that referenced this issue Sep 6, 2024
rtyler added a commit to rtyler/delta-rs that referenced this issue Sep 7, 2024
@Troubladore
Copy link
Author

@rtyler - ty for pushing this fix. Initially I got the same error, but then realized it worked with a straight pip install. Running the commands below to clear the Poetry cache allowed me to upgrade from 19.1 to 19.2 without issue.

poetry cache clear --all PyPI
poetry cache clear --all _default_cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants