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.

Install a package from github, but the generated entry in Pipfile.lock doesn't contain github url

See original GitHub issue
        "host-environment-markers": {
            "implementation_name": "cpython",
            "implementation_version": "0",
            "os_name": "posix",
            "platform_machine": "x86_64",
            "platform_python_implementation": "CPython",
            "platform_release": "4.4.0-104-generic",
            "platform_system": "Linux",
            "platform_version": "#127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017",
            "python_full_version": "2.7.14",
            "python_version": "2.7",
            "sys_platform": "linux2"
        }

Celery has a critical bug about timezone, which has been fixed on master but not uploaded to pypi.

So have to install celery directly from github:

$ pipenv install git+https://github.com/celery/celery.git@bd347f7565f3a72c8cfb686ea0bfe38cfa76e09b#egg=celery
# Or
$ pipenv install git+https://github.com/celery/celery.git@master#egg=celery

This results an entry in Pipfile:

celery = {git = "https://github.com/celery/celery.git", ref = "master"}

However, In Pipfile.lock the corresponding entry is like below:

        "celery": {
            "hashes": [
                "sha256:81a67f0d53a688ec2bc8557bd5d6d7218f925a6f2e6df80e01560de9e28997ec",
                "sha256:77ff3730198d6a17b3c1f05579ebe570b579efb35f6d7e13dba3b1368d068b35"
            ],
            "version": "==4.1.0"
        }

So when I do pipenv install in another setup, I will get the wrong version of celery.

See also: https://github.com/celery/celery/issues/4507

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kennethreitzcommented, Feb 17, 2018

You should be using -e for sure.

1reaction
RobertoMaurizzicommented, Feb 2, 2018

I’d say something else is at play, since for me it worked without adding -e

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local package with Git dependency is not installed ... - GitHub
Install created package via pipenv install -e ./package-with-git-sha-dep and look at generated Pipfile.lock - it doesn't contain information ...
Read more >
Trouble installing editable packages from git repos · Issue #1866
Issue I'm having trouble getting pipenv to deal with editable installs from git. I've narrowed down as much as possible for the purposes...
Read more >
Unable to install package from private repository #1393 - GitHub
I am attempting to install from a private repository. The output indicates the package and dependencies were installed but when pipenv is ...
Read more >
Pipfile.lock doesn't preserve some extras information #1014
Now, for this issue: From what I can see, the "extra" part itself is respected: Flask and Blinker are installed everytime. That's some...
Read more >
pipenv install -e . fails due to dependency resolution ... - GitHub
You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock --clear, then try the original ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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