-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Read timed out" error while generating lock file. #2736
Comments
@rincewind Thanks! That seems to have fixed it. A slightly flaky internet connection wasn't helping. |
what about adding a cache proxy on your machine? |
That's probably just the internet connection. |
I also met, randomly timeout |
this happens only because of internet connection |
I solved using this: https://blog.csdn.net/jpch89/article/details/81952416 |
That works! (base in China) Thanks! |
Issue description
Creating the virtual environment and installing packages from pip with
pipenv install
is fine, but I get aRead timed out.
error while creating the lock file. I'm runningpipenv install numpy
as the working example with Python version 2.7.12 on Ubuntu 16.04. (I do have pyenv installed but for this example the shim just points to the system python.)Running
pip list
in the virtual environment shows the package installed correctly. (As does running theimport
statement in the python shell.) It's just the lock file that has problems. I also tried runningpipenv lock --clear
with the created Pipfile, and the same error shows up.Expected result
Clean exit and production of Pipfile.lock (not produced in practice)
Actual result
Steps to replicate
Just
pipenv install numpy
in a clean folder.$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/lib/python2.7/dist-packages/pipenv'
Python location:
'/usr/bin/python'
Other Python installations in
PATH
:2.7
:/home/andrew/.pyenv/shims/python2.7
2.7
:/home/andrew/.pyenv/shims/python2.7
2.7
:/usr/bin/python2.7
3.5
:/home/andrew/.pyenv/shims/python3.5m
3.5
:/home/andrew/.pyenv/shims/python3.5
3.5
:/usr/bin/python3.5
3.5
:/home/andrew/anaconda3/bin/python3.5
2.7.12
:/home/andrew/.pyenv/shims/python
2.7.12
:/usr/bin/python
3.5.2
:/home/andrew/anaconda3/bin/python
2.7.12
:/home/andrew/.pyenv/shims/python2
2.7.12
:/usr/bin/python2
3.5.2
:/home/andrew/.pyenv/shims/python3
3.5.2
:/usr/bin/python3
3.5.2
:/home/andrew/anaconda3/bin/python3
PEP 508 Information:
System environment variables:
UPSTART_EVENTS
PYTHONDONTWRITEBYTECODE
XDG_SESSION_TYPE
INFOPATH
SHELL
TEXINPUTS
PYENV_SHELL
XDG_DATA_DIRS
MANDATORY_PATH
COMPIZ_CONFIG_PROFILE
UNITY_DEFAULT_PROFILE
UPSTART_INSTANCE
JOB
SESSION
MANPATH
ALGENCAN
XMODIFIERS
JAVA_HOME
GTK2_MODULES
XDG_RUNTIME_DIR
TEC_360_2014
PYTHONPATH
COMPIZ_BIN_PATH
QT_ACCESSIBILITY
XDG_SESSION_ID
DBUS_SESSION_BUS_ADDRESS
DEFAULTS_PATH
DESKTOP_SESSION
GTK_MODULES
INSTANCE
PETSC_ARCH
XDG_MENU_PREFIX
LS_COLORS
GNOME_DESKTOP_SESSION_ID
TAPENADE_HOME
LESSOPEN
USER
XDG_VTNR
PYENV_VIRTUALENV_INIT
XAUTHORITY
LANGUAGE
SESSION_MANAGER
SHLVL
QT_QPA_PLATFORMTHEME
DISPLAY
CLUTTER_IM_MODULE
WINDOWID
PETSC_DIR
GPG_AGENT_INFO
XDG_SESSION_DESKTOP
GDMSESSION
UPSTART_JOB
XDG_SEAT_PATH
PIP_PYTHON_PATH
GTK_IM_MODULE
TEXMFHOME
XDG_CONFIG_DIRS
XLIB_SKIP_ARGB_VISUALS
PYENV_HOOK_PATH
PYENV_ROOT
TEC_360_2009
TAO_DIR
XDG_GREETER_DATA_DIR
QT4_IM_MODULE
GALAHAD
TEXMFCNF
HOME
LD_LIBRARY_PATH
LANG
QT_LINUX_ACCESSIBILITY_ALWAYS_ON
PYENV_VERSION
MASTSIF
VTE_VERSION
XDG_CURRENT_DESKTOP
LESSCLOSE
GNOME_KEYRING_PID
QRM_NUM_THREADS
ARCHDEFS
CUTEST
PYENV_DIR
UNITY_HAS_3D_SUPPORT
QT_IM_MODULE
LOGNAME
XDG_SEAT
GNOME_KEYRING_CONTROL
PATH
TERM
XDG_SESSION_PATH
SIFDECODE
SESSIONTYPE
IM_CONFIG_PHASE
SSH_AUTH_SOCK
LATEX_STYLES
UPSTART_SESSION
DEAL_II_DIR
GDM_LANG
MYARCH
PWD
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/home/andrew/.pyenv/libexec:/home/andrew/.pyenv/plugins/python-build/bin:/home/andrew/.pyenv/plugins/pyenv-virtualenv/bin:/home/andrew/.pyenv/plugins/pyenv-update/bin:/home/andrew/.pyenv/plugins/pyenv-installer/bin:/home/andrew/.pyenv/plugins/pyenv-doctor/bin:/home/andrew/.pyenv/plugins/pyenv-virtualenv/shims:/home/andrew/.pyenv/shims:~/.pyenv/bin:/usr/local/texlive/2012/bin/x86_64-linux:/home/andrew/git-code/cutest-mirror/bin:/home/andrew/git-code/sifdecode-mirror/bin:/home/andrew/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/tecplot360ex/bin:/home/andrew/galahad/bin:/home/andrew/packages/tapenade3.10/bin:/usr/ansys_inc/v140/icemcfd/linux64_amd/bin/:/home/andrew/anaconda3/bin:/home/andrew/ampl.linux64
SHELL
:/bin/bash
LANG
:en_CA.UTF-8
PWD
:/home/andrew/git-code/pipenv-test-folder
Contents of
Pipfile
('/home/andrew/git-code/pipenv-test-folder/Pipfile'):The text was updated successfully, but these errors were encountered: