pipenv install times out while creating virtualenv
See original GitHub issueRunning pipenv --three install
fails at Creating a virtualenv for this project
with the output:
Creating a virtualenv for this project...
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pexpect/expect.py", line 97, in expect_loop
return self.timeout()
File "/usr/lib/python3.4/site-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7fe6f4e65f28>
searcher: searcher_re:
0: EOF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pipenv", line 9, in <module>
load_entry_point('pipenv==0.2.8', 'console_scripts', 'pipenv')()
File "/usr/lib/python3.4/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.4/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.4/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.4/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/pipenv/cli.py", line 393, in install
ensure_project(dev=dev, three=three)
File "/usr/lib/python3.4/site-packages/pipenv/cli.py", line 76, in ensure_project
ensure_virtualenv(three=three)
File "/usr/lib/python3.4/site-packages/pipenv/cli.py", line 57, in ensure_virtualenv
do_create_virtualenv(three=three)
File "/usr/lib/python3.4/site-packages/pipenv/cli.py", line 166, in do_create_virtualenv
click.echo(crayons.blue(c.out))
File "/usr/lib/python3.4/site-packages/delegator.py", line 78, in out
self.__out = self._pexpect_out
File "/usr/lib/python3.4/site-packages/delegator.py", line 66, in _pexpect_out
result += self.subprocess.read().decode('utf-8')
File "/usr/lib/python3.4/site-packages/pexpect/spawnbase.py", line 413, in read
self.expect(self.delimiter)
File "/usr/lib/python3.4/site-packages/pexpect/spawnbase.py", line 321, in expect
timeout, searchwindowsize, async)
File "/usr/lib/python3.4/site-packages/pexpect/spawnbase.py", line 345, in expect_list
return exp.expect_loop(timeout)
File "/usr/lib/python3.4/site-packages/pexpect/expect.py", line 107, in expect_loop
return self.timeout(e)
File "/usr/lib/python3.4/site-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7fe6f4e65f28>
searcher: searcher_re:
0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0x7fe6f4e65f28>
searcher: searcher_re:
0: EOF
The .venv directory is created and subsequent use of pipenv install [package]
work correctly.
Relevant package versions:
delegator.py==0.0.7
pexpect==4.2.1
pipenv==0.2.8
virtualenv==15.1.0
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:25 (9 by maintainers)
Top Results From Across the Web
python - pipenv install failing due to timeout
First step is to increasing the TIMEOUT value in: PIPENV_TIMEOUT ... After go to your project to create again your virtualenv
Read more >pipenv Documentation
Automatically creates a virtualenv in a standard customizable location. • Automatically adds/removes packages to a Pipfile when they are installed or ...
Read more >Advanced Usage of Pipenv - Python Packaging Authority
This will fail a build if the Pipfile.lock is out–of–date, instead of generating a new one. Or you can install packages exactly as...
Read more >Common Pipenv Errors and How to Solve Them
Pipenv is essentially pip and virtualenv wrapped together into a single product. When you begin a project with Pipenv, the tool automatically creates...
Read more >pipenv Documentation
It automatically creates and manages a virtualenv for your projects, ... While pip can install Python packages, Pipenv is recommended as it's a...
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 Free
Top 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
It would be good to make a reference to
PIPENV_TIMEOUT
environment variable in that exception.Got similar problem with timeout. It waited for around 20 minutes, then failed:
Pipenv is 2018.11.26 OS is xubuntu 16.04.3 x64