-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Deploy fails due to outdated Pipfile.lock #704
Comments
Rolling back to Before the deploy fails due to the outdated Pipfile.lock hash, there are a number of lines logged along the lines of Our error output:
and our Pipfile:
|
Save issue with #702 This is obviously a bug related with latest pipenv. It may related with pypa/pipenv#2219 Using pipenv version v11.9.0 or older version can fix issue for now. |
Got hit by the same bug, raised support ticket #602020, but sadly got no help so far 👎 How did you manage to downgrade the buildpack @adamkowalczyk, by forking it to your account, amending I was hoping that I would be able to disable I think we would really benefit from a toggle to disable |
@zyv Pin your buildpack version by |
Environment variables set in the app's config are not set in the environment during the build by default - instead individual steps during the build have to load them in from I presume this is intended to prevent the build being broken by an app having variables set that shouldn't be, but it does mean that it's currently not possible to set For now an alternative workaround (instead of pinning to an old buildpack version), would be to use the To do that, create a script named #!/usr/bin/env bash
# Make non-zero exit codes & other errors fatal:
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
# Prevent heroku-buildpack-python from using pipenv instead of pip and requirements.txt.
rm Pipfile Pipfile.lock |
Hey @edmorley, that sounds like a great workaround, thank you! I'll give it a whirl and report back. |
You're welcome! I should add a caveat that if pipenv is not currently reliable enough (either in general or just via this buildpack) that it's probably best to remove |
Just implemented it and it works like a charm! This will allow us to keep dependencies under pipenv management / enjoy its support for working with virtualenvs, and, at the same time, hopefully never again waste days on fixing pipenv related problems on Heroku / always have a stable @edmorley as to your additional point, thanks for this valuable hint as well, I'll just add a check to our CI script to compare I wish Heroku engineers were as helpful and responsive as you guys, so glad I stumbled upon this issue 👍 |
Just to report some success in solving it and another work around: @mcescalante and I ran into the same issue today. In our case it was fixed by removing a requirements that was to be installed from GitHub (c.f. https://github.com/OpenHumans/oh-fitbit-integration/pull/16/files#diff-1e61a31bf9b94805f869dc4137ec1885L20). After removing the corresponding requirement the build on heroku would go through without any problems. As an alternative to that |
Hey y'all! We just released a fix for a bug where installing pipenv caused pip to upgrade to latest - |
@CaseyFaist No, doesn't look like anything has changed. Just tried a deploy with the latest version (v141) and the build failed. |
@adamkowalczyk It is because this issue is caused by pipenv 2018.5.18. So this issue is not actually solved. Pin pipenv to version newer than 2018.6.25 can fix this. However, other pipenv version has other critical issues. So maybe it is better to stay in this way until a stable pipenv version is released. |
@jxltom Thanks for the info. Are you aware of a pipenv issue relating to this problem? I can't seem to find one. |
@adamkowalczyk It should be pypa/pipenv#2219 and fixed in pypa/pipenv#2301 |
This thread has been very helpful. I am back up and running on Heroku. Just one thing: When you change the name of the pipfile, or move them elsewhere, don't forget to commit those changes! |
Our heroku builds have started failing today with the error message
I notice that you have bumped the pipenv version today, and I have also updated my local pip (
10.0.1
) and and pipenv (2018.05.18
) installations. However, I am unable to get my Pipfile.lock hash to change to<new hash>
-runningpipenv lock
does not change the hash at all.I am at a loss as to what is causing my local Pipfile.lock hash to be different to the one generated in the heroku build, or how to fix the problem.
The text was updated successfully, but these errors were encountered: