dojeda / poetry2conda

Convert pyproject.toml to environment.yaml
MIT License
126 stars 21 forks source link

KeyError on running poetry2conda #19

Open skulltech opened 3 years ago

skulltech commented 3 years ago

Following is the error

sumit@Sumits-MacBook-Air backend % poetry2conda pyproject.toml environment.yaml
Traceback (most recent call last):
  File "/opt/homebrew/bin/poetry2conda", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/poetry2conda/convert.py", line 294, in main
    converted_obj = convert(args.pyproject, include_dev=args.dev, extras=args.extras)
  File "/opt/homebrew/lib/python3.9/site-packages/poetry2conda/convert.py", line 53, in convert
    dependencies, pip_dependencies = collect_dependencies(
  File "/opt/homebrew/lib/python3.9/site-packages/poetry2conda/convert.py", line 161, in collect_dependencies
    tag = constraint["tag"]
KeyError: 'tag'

I'm suspecting this dependency in my pyproject.yaml is the culprit.

pyppeteer = { git = "https://github.com/pyppeteer/pyppeteer.git", rev = "0fd15a7" }