python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.71k stars 2.27k forks source link

Heroku: AttributeError: 'NoneType' object has no attribute 'to_dependency' #3176

Closed schlich closed 4 years ago

schlich commented 4 years ago

Issue

When deploying to Heroku using the poetry build pack, i get the error message posted in the title at the step -----> Export requirements.txt from Poetry attempting to manually export requirements.txt from poetry and then deploying pointed to pygsheets and oauth2lib as potential culprits:

ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not
oauth2client from https://files.pythonhosted.org/packages/95/a9/4f25a14d23f0786b64875b91784607c2277eff25d48f915e39ff0cff505a/oauth2client-4.1.3-py2.py3-none-any.whl#sha256=b8a81cc5d60e2d364f0b1b98f958dbd472887acaf1a5b05e21c28c31a2d6d3ac (from pygsheets==2.0.3.1->-r /tmp/build_e17f181a/requirements.txt (line 229))
schlich commented 4 years ago

I think this is an issue with the buildpack, pinning the poetry version to a previous version (1.1.1) did the trick.

related to https://github.com/moneymeets/python-poetry-buildpack/issues/13

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.