You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pty option not working as expected in Python 3.14 #1052
I have some tasks that use an interactive terminal however when running those tasks with Python 3.14 the keyboard inputs are not passed through.
I'm not sure my understanding of the issue is good enough to explain it but I have created an example below which should demonstrate the issue:
#!/usr/bin/env python3defmain():
result=input("Please enter some text: ")
print(f"This is what you input: {result}")
if__name__=='__main__':
main()
When I run this with Python 3.13 or older it accepts the input and prints the result:
invoke run
Please enter some text: Some text
This is what you input: Some text
When I run this with Python 3.14, the input is not accepted and actually no keyboard inputs seem to go through including ctrl C to kill the process:
invoke run
Please enter some text: Some text
^C^C
^C^C
I am using pyenv to manage the Python versions (which is 3.14.0 to be exact) and I'm on macOS Sequoia Version 15.7
Reacted by Arnaud V, Stanislav Khlud, Andrey Otto, James Beith, Nicolai Antiferov, Carlo Teubner, Gary Snider, fuf-nf, Ivan Studinsky, xuhcc and 12 more
Activity
c4rlo commentedon Jan 11, 2026
I'm seeing this issue as well with Python 3.14 (but not 3.13) on Linux.
Add patch to fix issue with interactive tasks
Add patch to fix issue with interactive tasks
Add patch to fix issue with interactive tasks
Add patch to fix issue with interactive tasks