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

[PR #13176/b4009b31 backport][8.3.x] Add readline workaround for libedit #13187

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Feb 3, 2025

This is a backport of PR #13176 as merged into main (b4009b3).

We had a very similar workaround before for pyreadline, which had a similar issue:

This technically will regress the issues above, but those issues just mean that import readline is broken in general, so the user should fix it instead (by e.g. uninstalling pyreadline).

Fixes #12888
Fixes #13170

@webknjaz
Copy link
Member

  × Failed to build `pydantic-core==2.18.2`
      error: failed to run custom build command for `pyo3-ffi v0.21.1`
        error: the configured Python interpreter version (3.13) is newer than
      PyO3's maximum supported version (3.12)

I'll click “rebase”.

* Add readline workaround for libedit

We had a very similar workaround before for pyreadline, which had a similar
issue:

- Introduced in #1281
- Removed in #8848 for #8733 and #8847

This technically will regress the issues above, but those issues just mean that
`import readline` is broken in general, so the user should fix it instead (by
e.g. uninstalling pyreadline).

Fixes #12888
Fixes #13170

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Handle no readline on Windows

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit b4009b3)
@webknjaz webknjaz force-pushed the patchback/backports/8.3.x/b4009b31978053fe077a32d219ad947a5ba7243c/pr-13176 branch from 95bd057 to b75cfb1 Compare February 28, 2025 14:15
@webknjaz webknjaz enabled auto-merge February 28, 2025 14:15
@webknjaz webknjaz merged commit 3419674 into 8.3.x Feb 28, 2025
29 checks passed
@webknjaz webknjaz deleted the patchback/backports/8.3.x/b4009b31978053fe077a32d219ad947a5ba7243c/pr-13176 branch February 28, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants