Skip to content

When using UV to directly start the REPL, with 3.14.2, AttributeError: module 'readline' has no attribute 'backend' #144395

@BHznJNs

Description

@BHznJNs

Bug description:

Not sure is it a bug from uv or cpython.

Python version: 3.14.2
Operating System: Windows 11 25H2

After I installed the virtual environment with uv, I tried to start the REPL with:

uv run python

Then I met this error, here is the complete log:

Python 3.14.2 (main, Jan 27 2026, 23:46:05) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.__interactivehook__
Traceback (most recent call last):
  File "<frozen site>", line 542, in register_readline
AttributeError: module 'readline' has no attribute 'backend'
>>>

I also tried the embed version of also 3.14.2, no any error.
I also tried directly launching 3.13.5 and 3.14.2 (both installed with pymanager), also not any error.

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowspendingThe issue will be closed if no feedback is providedtopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions