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.

ctr-c pressed pip should return as soon as possible

See original GitHub issue

What’s the problem this feature will solve?

  • user can cancel operation when pip install software for a long time, other than waiting for timeout
  • for example ,when the network is not well ,user must wait for about 10s to see the pip output Operation cancelled by user, if ctr-c is pressed I hope the pip command return as soon as possible. Describe the solution you’d like
  • I hope there is a ctr-c event handler

Alternative Solutions

  • null

Additional context

  • null

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pfmoorecommented, Mar 13, 2019

That’s a very old version of pip, does the same thing happen with the latest version (19.0.3)? Also, it’s possible that Python 2’s handling of interrupts of network calls is not as good as Python 3’s - do you get the same result with Python 3?

Having said that, I stand by what I said above - I think that fundamentally this is an issue with somewhere lower in the stack than pip.

0reactions
chrahuntcommented, Aug 6, 2019

Hi @LIUHUANUCAS. In addition to what was suggested above, getting strace output while reproducing could also help pinpoint a cause which could lead to a system configuration parameter or something that could help this situation.

Since it looks like this is specific to the underlying Python or system configuration and there’s no action for pip specifically, I will close this issue, but please let us know if there is anything else that we can help with.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Clearboard - California Trolley and Railroad Corporation
CTRC's annual Board of Directors' meeting will convene at 3:00 PM on Thursday, ... Please RSVP soon to Meg Fitts at 408/924-7569 with...
Read more >
Untitled
TATUNG reserves the right to make improvement in the product described in this manual at any time and without prior notice, and the...
Read more >
Download Panasonic owners manual PT51G50U user guide ...
Pressing the ACTION button again will return you back to the Audio Icon Audio Adjustments (cont) Located On Remote Control Selecis Desired Feature...
Read more >
Guide to Writing a Terminal Monitor Program Dr a Command ...
A command processor must be able to perform the same functions when a subcommand name is entered. You can use the Command Scan...
Read more >
TO 35E1-2-13-1 - Robins Air Force Base
This manual describes physical and/or chemical processes which may cause injury or death to personnel, or damage to equipment, if not properly followed....
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