I figured out the following issue.
- The code owners had updated the poetry core requirement to
requires = ["poetry-core>=1.2.0"]
- My current poetry version was
1.1.12
I did the following to fix my issue.
# remove the current poetry installation
rm -rf /Users/myusername/.poetry
# upgrade poetry version
pip install poetry -U
This should solve the problem. I verified the same by running my other poetry commands.
It should be noted that your current poetry configurations will be lost while doing this, and would need to be recreated and reinstalled.
# reinstall poetry for my project
poetry install