Q: Poetry could not find a pyproject.toml file in {} or its parents
A: You have to create a pyproject.toml first. Go into your project folder, run poetry init and follow the instructions. As an alternative you can run poetry new myproject to create a basic folder structure and a pyproject.toml. Also have a look into the docs.

Q:
A: