Skip to content

Misleading pyrepl warnings when _curses module is missing #135621

Open
@itamaro

Description

@itamaro

Bug report

Bug description:

If I run 3.14 on Linux without a working _curses extension, I get this misleading warning from pyrepl:

warning: can't use pyrepl: Windows only

I suspect pyrepl is not actually Windows only, and indeed if I fix _curses it works again.

Presumably, a better warning would be

warning: can't use pyrepl: No module named '_curses'

or something like that

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixestopic-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