question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install package from private repository

See original GitHub issue

I am attempting to install from a private repository. The output indicates the package and dependencies were installed but when pipenv is “Locking [packages] dependencies…”

I receive an error indicating: pip.exceptions.InstallationError: Could not detect requirement name, please specify one with #egg=

Describe your environment
  1. macOS 10.13.2
  2. Python version: Python 3.6.3
  3. Pipenv version: pipenv, version 9.0.3
Expected result

I am expecting for the package to install and the lockfile to be written.

Actual result
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Traceback (most recent call last):
  File "/Users/clayk/Library/Python/3.6/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/cli.py", line 1934, in install
    do_lock(system=system, pre=pre)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/cli.py", line 1102, in do_lock
    pre=pre
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/utils.py", line 545, in resolve_deps
    resolved_tree = actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources, verbose, clear, pre)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/utils.py", line 470, in actually_resolve_reps
    constraint = pip.req.InstallRequirement.from_editable(dep[len('-e '):])
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/patched/pip/req/req_install.py", line 143, in from_editable
    editable_req, default_vcs)
  File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/patched/pip/req/req_install.py", line 1196, in parse_editable
    "Could not detect requirement name, please specify one with #egg="
pip.exceptions.InstallationError: Could not detect requirement name, please specify one with #egg=
Steps to replicate

execute pipenv install -e git+ssh://path/to/private/Redacted.git@v1.1.8#egg=privatepackagename

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:40 (15 by maintainers)

github_iconTop GitHub Comments

33reactions
mirolicommented, May 29, 2019

I realize this issue is closed, but I have the exact same problem as @grudelsud (failed with error code 128 in None) and I’m on the latest version of pipenv. Not sure if a fix was deployed?

10reactions
bokhicommented, Mar 4, 2018

@techalchemy To install a private github repository from pip the syntax is pip install git+ssh://git@github.com/username/repo.git@branch#egg=blah

This worked properly with pipenv up to version 9 pipenv install git+ssh://git@github.com/username/repo.git@branch#egg=blah

but with pipenv 11 pipenv install git+ssh://git@github.com/username/repo.git@branch#egg=blah returns with the an error for git clone -q git@github.com/username/repo.git /tmp/temp it’s because the correct syntax should be git clone -q git@github.com:username/repo.git /tmp/temp with : and not /

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install package from private GitHub repository with Yarn ...
In my case, my ssh key was generated years ago and is not "strong" enough nowadays, so I can git clone my private...
Read more >
Unable to install package from private npm registry
I've created a single private project that I'm only using as a centralized, remote NPM package repository. I'm able to publish packages ok....
Read more >
Unable to install packages from private git repository inside ...
I am trying to clone a private repository inside my docker container using ssh keys. I am using my own ssh keys by...
Read more >
gh-actions for r-cmd-check on package on private repository
I have a package on private repository that imports another package ... Can't install dependency myorg/pak2 * myorg/pak2: Can't find GitHub ...
Read more >
Installing Private Python Packages - Read the Docs
If you have private dependencies, you can install them from a private Git ... Pip supports installing packages from a Git repository using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found