Pipfile.lock устарел / не может создать обычный файл 'needs.txt' - PullRequest
0 голосов
/ 28 марта 2020

Когда я пытаюсь отправить sh свой проект в Heroku с git push heroku master, я получаю следующий вывод:

remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider upgrading to python-3.7.6
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: cp: cannot create regular file '/app/tmp/cache/.heroku/requirements.txt': No such file or directory
remote: -----> Installing python-3.7.3
remote: -----> Installing pip
remote: -----> Installing dependencies with Pipenv 2018.5.18…
remote:        Your Pipfile.lock (e78d47) is out of date. Expected: (d89661).
remote:        Aborting deploy.
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed

Я пытался запустить pipenv lock, но это не решило проблему.

Мой Pipfile выглядит так:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
flask = "*"
gunicorn = "*"
numpy = "*"
opencv-python = "*"

[requires]
python_version = "3.7"

Есть идеи?

1 Ответ

0 голосов
/ 28 марта 2020

Я попытался запустить pipenv lock, но это не решило проблему

Убедитесь, что зафиксировали измененный Pipfile.lock и pu sh ваш коммит в Heroku. Простое выполнение этой команды локально не сделает этого.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...