question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`poetry shell` puts Terminal in broken state and does not function

See original GitHub issue
  • I am on the latest Poetry version.

  • 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: Mac OS Mojave (10.14.6)

  • Poetry version: 1.0.0b5

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/orokusaki/0750bd0dfef13324353d302d74a48254

Further environment notes

  • Python 2.7.17 and Python 3.7.5 installed via Homebrew
  • Poetry installed via curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | POETRY_PREVIEW=1 python

Issue

Upon using poetry shell -vvv (also tried without -vvv flag) the shell appears to spawn, but when I attempt to type any command, no text appears in the Terminal, and when I hit <kbd>return</kbd> I get what you can see in the screenshot I attached (the screenshot reflects the state after I typed a few characters and then hit <kbd>return</kbd> twice). If I send SIGINT to the shell (<kbd>CTRL</kbd> + <kbd>C</kbd>), the Terminal drops to a new line with the same output and lack of responsiveness, and upon sending SIGINT many times I’m still left with the Terminal in an unusable state. If I attempt to close Terminal, I get “Closing this tab will terminate the running processes: bash, Python.”, which indicates that some code in Poetry is still hung up.

Screenshot

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kawing-chiucommented, Nov 22, 2019

@sdispater Hi. I’ve tested the commit in #1621 , it works!

0reactions
mthuurnecommented, Nov 22, 2019

This seems to be the same issue as #1503. The workaround is to type reset in the new shell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running poetry fails with /usr/bin/env: 'python': No such file or ...
poetry is dependent on whatever python is and doesn't attempt to use a specific version of python unless otherwise specified.
Read more >
Commands | Documentation | Poetry - Python dependency ...
Commands You've already learned how to use the command-line interface to do some things. This chapter documents all the available commands.
Read more >
Pipenv: promises a lot, delivers very little | Chris Warrick
Pipenv is a Python packaging tool that does one thing reasonably well. It tries to promote itself as much more than it is....
Read more >
What to do when Ctrl + C can't kill a process? - Super User
If that doesn't work, go to another terminal or SSH session and do kill or kill -TERM on the process ID. Only as...
Read more >
Dependency Management With Python Poetry
After an update, a package might not work as it did before the update. A dependency manager like Python Poetry helps you specify,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found