-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Issue description
When trying to install pycountry (either via Pipfile or pipenv install pycountry
), pipenv becomes stuck on the installing stage. There are unfortunately no errors or outputs that I have been able to generate to narrow this issue down.
Expected result
The pycountry package to be installed.
Actual result
$ pipenv install pycountry --verbose
Installing pycountry…
[ ] Installing...Installing 'pycountry'
$ ['C:\\Users\\Studybuffalo\\.virtualenvs\\test-23MAWioC\\Scripts\\pip.exe', 'install', '--verbose', '--upgrade', 'pycountry', '-i', 'https://pypi.org/simple']
[ ==] Installing...
The "Installing" output continues indefinitely (have left it for over an hour). When cancelling the install the only output is: FAIL
Steps to replicate
Using Windows 10, Python 3.7.1, and pipenv 2018.11.14:
pipenv install pycountry
Other Details
Pipenv installed via pip (pip install pipenv==2018.11.14
)
Output from pipenv --support
$ pipenv --support
Pipenv version: '2018.11.14'
Pipenv location: 'c:\\program files (x86)\\python37\\lib\\site-packages\\pipenv'
Python location: 'c:\\program files (x86)\\python37\\python.exe'
Python installations found:
3.7.1
:C:\Program Files (x86)\Python37\python.exe
3.6.7
:C:\Program Files (x86)\Python36\python.exe
3.5
:C:\Program Files (x86)\Python35\python.exe
3.4
:C:\Program Files (x86)\Python34\python.exe
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.7.1',
'os_name': 'nt',
'platform_machine': 'AMD64',
'platform_python_implementation': 'CPython',
'platform_release': '10',
'platform_system': 'Windows',
'platform_version': '10.0.17134',
'python_full_version': '3.7.1',
'python_version': '3.7',
'sys_platform': 'win32'}
System environment variables:
ALLUSERSPROFILE
APPDATA
ASL.LOG
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
DRIVERDATA
FP_NO_HOST_CHECK
HOMEDRIVE
HOMEPATH
LOCALAPPDATA
LOGONSERVER
NUMBER_OF_PROCESSORS
ONEDRIVE
OS
PATH
PATHEXT
PIPENV_INSTALL_TIMEOUT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PSMODULEPATH
PUBLIC
SESSIONNAME
SYSTEMDRIVE
SYSTEMROOT
TEMP
TESSDATA_PREFIX
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VBOX_MSI_INSTALL_PATH
VS100COMNTOOLS
VS110COMNTOOLS
VS120COMNTOOLS
VS140COMNTOOLS
WINDIR
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv?specific environment variables:
PIPENV_INSTALL_TIMEOUT
:60
Debug?specific environment variables:
PATH
:C:\Program Files (x86)\Python37\Scripts\;C:\Program Files (x86)\Python37\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Tesseract-OCR\;C:\Program Files\nodejs\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\gs\gs9.19\bin;C:\Program Files\gs\gs9.19\lib;C:\WINDOWS\system32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Users\Studybuffalo\AppData\Local\Microsoft\WindowsApps;E:\My Documents\GitHub\config\;C:\Program Files\Microsoft VS Code\bin;C:\Users\Studybuffalo\AppData\Roaming\npm;C:\Users\Studybuffalo\AppData\Local\GitHubDesktop\bin;C:\Users\Studybuffalo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Studybuffalo\AppData\Local\Programs\Python\Python37\;C:\Users\Studybuffalo\AppData\Local\Programs\Python\Python37\Scripts;
Contents of Pipfile
('E:\My Documents\GitHub\test\Pipfile'):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
django = "*"
[requires]
python_version = "3.7"
Contents of Pipfile.lock
('E:\My Documents\GitHub\test\Pipfile.lock'):
{
"_meta": {
"hash": {
"sha256": "627ef89f247ecee27e9ef0dabe116108d09c47abf171c900a8817befa64f9dd2"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"django": {
"hashes": [
"sha256:1ffab268ada3d5684c05ba7ce776eaeedef360712358d6a6b340ae9f16486916",
"sha256:dd46d87af4c1bf54f4c926c3cfa41dc2b5c15782f15e4329752ce65f5dad1c37"
],
"index": "pypi",
"version": "==2.1.3"
},
"pytz": {
"hashes": [
"sha256:8e0f8568c118d3077b46be7d654cc8167fa916092e28320cde048e54bfc9f1e6"
],
"version": "==2018.7"
}
},
"develop": {}
}
Attempted Fixes
The following attempts did not result in any changes to the above:
- Installing in a fresh virtual environment.
- Clearing the cache when installing (with the
--clear
option). - Downgrading pipenv version to 2018.10.13 and 2018.10.09.
- Reducing the
PIPENV_INSTALL_TIMEOUT
variable to < 60 seconds to trigger a timeout. - Running installation with Administrator rights.
- Verified installations work by installing other packages (
django
in the above output for example)
The following attempts had varying success:
- Installing
pycountry
via pip (pip install pycountry
) inpipenv shell
works. The Pipfile was not updated, butpycountry
was listed withpipenv graph
. - Installing into an Ubuntu 16.04 server worked as expected.
pipenv --support
output as follows:
$ pipenv --support
Pipenv version: '2018.11.14'
Pipenv location: '/usr/local/lib/python3.6/dist-packages/pipenv'
Python location: '/usr/bin/python3.6'
Python installations found:
3.6.7
:/usr/bin/python3.6m
3.6.7
:/usr/bin/python3.6
3.5.2
:/usr/bin/python3.5
3.5.2
:/usr/bin/python3.5m
2.7.12
:/usr/bin/python2
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.6.7',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '4.4.0-139-generic',
'platform_system': 'Linux',
'platform_version': '#165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018',
'python_full_version': '3.6.7',
'python_version': '3.6',
'sys_platform': 'linux'}
System environment variables:
XDG_SESSION_ID
TERM
SHELL
SSH_CLIENT
SSH_TTY
USER
LS_COLORS
MAIL
PATH
PWD
LANG
SHLVL
HOME
LANGUAGE
LOGNAME
XDG_DATA_DIRS
SSH_CONNECTION
LESSOPEN
XDG_RUNTIME_DIR
LESSCLOSE
_
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/studybuffalo/bin:/home/studybuffalo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL
:/bin/bash
LANG
:en_CA.UTF-8
PWD
:/home/studybuffalo/test
Contents of Pipfile
('/home/studybuffalo/test/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pycountry = "*"
[dev-packages]
[requires]
python_version = "3.6"
Contents of Pipfile.lock
('/home/studybuffalo/test/Pipfile.lock'):
{
"_meta": {
"hash": {
"sha256": "792a57e440e7887d9fe04b0305cc0bc953779d266aa9204b4075626a7eee844f"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.6"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"pycountry": {
"hashes": [
"sha256:195d8174fd6f98f45622d2885826091fc8b2168184422dac574311073ab8386c",
"sha256:7f2aa2529c60f6575af3cd644688b201b97016822ce0ce1c4bcc0f7d08900997",
"sha256:ea38f839e719be54dfae1b089cbf1917add6ff8f43a55533d8c7c5799656a848"
],
"index": "pypi",
"version": "==18.5.26"
}
},
"develop": {}
}