-
-
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
Unable to install pycountry #3245
Comments
Well you have |
Tried it again both with no timeout (left for 2 hours) and then again with a 1 minute timeout. Both times it remained on
Steps to Replicate
$ pipenv --supportPipenv version: Pipenv location: Python location: Python installations found:
PEP 508 Information:
System environment variables:
Pipenv?specific environment variables:
Debug?specific environment variables:
Contents of [[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
pycountry = "*"
[requires]
python_version = "3.7"
|
I seem to be running into a similar issue with pipenv 2018.11.26 on Windows 10 Version 1803 (OS Build 17134.4037).
From what I have seen, running
$ pipenv --supportPipenv version: Pipenv location: Python location: Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables: Debug–specific environment variables:
Contents of [[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
asyncssh = {extras = ["bcrypt", "libnacl", "pyopenssl", "pypiwin32"],version = "*"}
[dev-packages]
[requires]
python_version = "3.7"
Contents of {
"_meta": {
"hash": {
"sha256": "7e7ef69da7248742e869378f8421880cf8f0017f96d94d086813baa518a65489"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {},
"develop": {}
}
|
@u0m3 gave me the idea to modify to modify my local pipenv version with debug code to try and track down where the issue is occurring and I think I have been able to determine where my issue is occurring. It seems my pipenv locks up when getting to I replaced the normal block method with the code below to write some output to disk (printing to console was spotty because at some point stdout is being captured). def block(self):
"""Blocks until process is complete."""
if self._uses_subprocess:
# consume stdout and stderr
if self.blocking:
try:
# Record the start of the subprocess method
with open('E:\\Dropbox\\test.txt', 'a') as doc:
from datetime import datetime
doc.write('{}: {}\n'.format(datetime.now(), 'block start'))
stdout, stderr = self.subprocess.communicate()
self.__out = stdout
self.__err = stderr
# Record the completion of the subprocess method
with open('E:\\Dropbox\\test.txt', 'a') as doc:
from datetime import datetime
doc.write('{}: {}\n'.format(datetime.now(), 'block end'))
except ValueError:
pass # Don't read from finished subprocesses.
else:
self.subprocess.stdin.close()
self.std_out.close()
self.std_err.close()
self.subprocess.wait()
else:
self.subprocess.sendeof()
try:
self.subprocess.wait()
finally:
if self.subprocess.proc.stdout:
self.subprocess.proc.stdout.close() Trying
with Pipenv never finishing to install. Trying a package that works (e.g.
Unfortunately from this point Pipenv is using the |
Modifying subprocess is not an option, so if your bug requires that to fix you’ll need to file it against the python issue tracker. But it’s more likely that you can modify the environment variable |
I understand why modifying a subprocess would not be an option, but what about catching the |
This was resolved by #3298 (or possibly another pr that merged a fix) sorry for the issue! |
Thanks for that - I will give it a test in the near future! |
@techalchemy , where can people go to find information about when the next expected release will be? thx. :) |
Right here! Catching up on issues and merge requests and then we will release |
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
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:
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'):Contents of
Pipfile.lock
('E:\My Documents\GitHub\test\Pipfile.lock'):Attempted Fixes
The following attempts did not result in any changes to the above:
--clear
option).PIPENV_INSTALL_TIMEOUT
variable to < 60 seconds to trigger a timeout.django
in the above output for example)The following attempts had varying success:
pycountry
via pip (pip install pycountry
) inpipenv shell
works. The Pipfile was not updated, butpycountry
was listed withpipenv graph
.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:
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'):Contents of
Pipfile.lock
('/home/studybuffalo/test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: