-
-
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
'pipenv install' fails with 'ssh: Could not resolve hostname my.domain.com:gitlab_username Name or service not known' #2541
Comments
I believe this is fixed by #2453 via the requirementslib upgrade. In master, not released. |
@uranusjr I believe this is still broken on the
|
I assume you have noticed the exception is totally different from the top post? I don’t want to sound like an asshole, but please don’t just come in and tag people without actually thinking things through. It is really not good for anyone’s productivity. |
I assume you know how to read, as I clearly said "i beleive" and on the The typical "i dont want to be an asshole, but ill be an asshole anyway" asshole, Is not like I came here like the typical "bad software does not work, fix your issues", I was just commenting this could still be a problem. |
This appears to still be broken, actually. I'm using Pipenv 2018.11.26-7.fc30, and I'm seeing the exact same behavior:
Did the 2018.11 release not contain the fix candidate? |
Just came across this as I'm encountering the same issue with |
pip has formally deprecated |
After spending multiple hours not knowing why my installation of a private GitHub repo via ssh was failing I came across this unassuming StackOverflow answer. I'd recommend adding something like this to the pipenv docs so that people can avoid this pain--it's a tough issue to track down! If you want to install via ssh (say, for a private repo), you'll need to modify the GitHub ssh url as follows:
Correct: Incorrect: And the install looks like:
Otherwise you'll get a very long install process followed by the cryptic error: pipenv.patched.notpip._internal.exceptions.InstallationError: Command "git clone -q ssh://git@github.com:coltonbh/my-package.git /var/folders/w2/rkn1bm3d3ndclys0f81clbfw0000gn/T/requirementslib5mkvyj4m/mypgk" failed with error code 128 in None |
@coltonbh +1000 |
Issue description
'pipenv install' fails since version 2018.6.25 if the Pipfile contains a package reference to a Gitlab repository, like e.g.:
my_package = {git = "git@my.domain.com:gitlab_username/my_package.git", ref = "master"}
Here, my.domain.com is a replacement for the properly resolving domain.
Downgrading to 2018.5.18 resolves the issue.
Expected result
It should install 'my_package'.
Actual result
pipenv seems to append ':gitlab_username' to the domain name and as a result fails to resolve the hostname.
Steps to replicate
Replace git@my.domain.com:gitlab_username/my_package.git correspondingly and run
pipenv install
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/local/lib/python2.7/site-packages/pipenv'
Python location:
'/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin/python2.7'
Other Python installations in
PATH
:2.7
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin/python2.7
2.7
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
2.7.14
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin/python
2.7.15
:/usr/bin/python
2.7.14
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin/python2
2.7.15
:/usr/bin/python2
3.6.5
:/usr/bin/python3
PEP 508 Information:
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y/bin:/home/me/.rvm/gems/ruby-2.4.1/bin:/home/me/.rvm/gems/ruby-2.4.1@global/bin:/home/me/.rvm/rubies/ruby-2.4.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/me/.rvm/bin:/home/me/.rvm/bin:/home/me/.local/bin:/home/me/.rvm/bin:/home/me/.local/bin
SHELL
:/usr/bin/zsh
LANG
:en_US.UTF-8
PWD
:/home/me/projects/my_project
VIRTUAL_ENV
:/home/me/.local/share/virtualenvs/my_project-WRKZN-2y
Contents of
Pipfile
('/home/me/projects/my_project/Pipfile'):The text was updated successfully, but these errors were encountered: