Skip to content

New python interpreter launches with bad stty settings #1664

@itsthejoker

Description

@itsthejoker
  • I am on the latest Poetry version.
    • Latest preview
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 19.04
  • Poetry version: 1.0.0b8
  • Link of a Gist with the contents of your pyproject.toml file: not relevant, happens with all configs

Issue

When entering a new Python REPL after running poetry shell, no typed characters output to the terminal. A REPL instance in Pipenv and with no venv activated do not have this problem. Typed characters are still there, just not echoed:

  ³ .venv~/g/testpython                         Tue 03 Dec 2019 04:58:23 PM EST
Python 3.8.0 (default, Dec  3 2019, 11:49:25) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'sdfsdflskdfsdlfk' is not defined
>>> 

However, if I start a new Python REPL after executing poetry shell and paste in import os; os.system('stty sane') and execute it, it returns 0 on the same line and everything functions as expected.

  ³ .venv~/g/testpython                  2.6mTue 03 Dec 2019 05:01:01 PM EST
Python 3.8.0 (default, Dec  3 2019, 11:49:25) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 0
>>> Now I see characters!

I do not have this issue on my OSX machine, just my Ubuntu machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions