It just hangs
See original GitHub issueOn macOS with python and python3 installed, pipenv hangs with this Pipefile:
[packages]
awacs = "*"
awscli = "*"
aws-shell = "*"
botocore = "*"
jetstream = "*"
mycli = "*"
sops = "*"
troposphere = "*"
troposphere-cli = "*"
[requires]
python_version = "3.6"
Here’s what it shows:
$ pipenv install --three
Creating a virtualenv for this project...
⠋Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/nikolay/.local/share/virtualenvs/aws-0MMXWS-b/bin/python3.6
Also creating executable in /Users/nikolay/.local/share/virtualenvs/aws-0MMXWS-b/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: /Users/nikolay/.local/share/virtualenvs/aws-0MMXWS-b
No package provided, installing all dependencies.
Pipfile found at /Users/nikolay/Projects/DevOps/aws/Pipfile. Considering this to be the project home.
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
⠸Locking [packages] dependencies...
Notice the cursor leftover here as well:
⠋Running virtualenv with interpreter /usr/local/bin/python3
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Fix an Android device that freezes or won't respond
Try the following steps if your phone: Freezes Stops responding Is stuck with the screen on After each step, restart your phone to...
Read more >What does it mean when you call someone and it hangs up ...
Calling a number on your mobile phone and suddenly it hangs up without even ringing or saying the phone number is switched off,...
Read more >Every time I call a contact, my phone automatically hangs up ...
It is most likely that your phone not able to make outgoing calls. It could be a glitch or a signal issue. Basic...
Read more >Is it 'Hung' or 'Hanged'? - Merriam-Webster
Yes, there are two words for the past tense of 'hang'. Sorry about that. ... The past tense of hang in almost all...
Read more >Incoming call hanging up immediately - JustCall
No information is available for this page.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @nikolay, since I’m unable to reproduce this, and we don’t have any meaningful way to move forward here, I’m going to close this out. Please feel free to reopen this if you have further details or are able to pinpoint where things are hanging. Thanks!
I’ve noticed this happening as well. Here’s how I reproduced and investigated it:
In
cli.py
I added the following:Then I ran
pipenv lock --verbose
and the last few lines it printed before hanging indefinitely were these:It seemed to have completed but that
^C
is me having to CTRL-C the process and kill it.I ran
pipenv lock --verbose
again and waited until it got to that point and then rankill -s ALRM {the pid}
and this printed:The last line of pipenv before going into the requests library is
utils.py:481
in theresolve_deps
method which looks like this:That
requests.get
is likely hanging indefinitely so I changed it torequests.get('https://pypi.org/pypi/{0}/json'.format(name), timeout=5
and, while it definitely hung for a little while, the process did finish correctly the next time through:I’ve opened #885 to fix this with a (more generous) 10-second timeout