Poetry: Poetry run command returns not enough values to unpack

Created on 30 Jan 2019  路  3Comments  路  Source: python-poetry/poetry

I have a script in pyproject.toml

[tool.poetry.scripts]
start = "python attribrute/start.py"

but when I run poetry run start

```[ValueError]
not enough values to unpack (expected 2, got 1)

run ()...```

OS: ubuntu 18.10

Most helpful comment

@johannb75 this is working as expected at the moment. There is a feature request at #2310 regarding the expansion of this to support files.

For task runners, the community has built additional tools like https://github.com/nat-n/poethepoet to support that use case.

All 3 comments

Scripts work the same say as setuptools entry points, so I believe this should be:

[tool.poetry.scripts]
start = "attribrute.start:__main__"

https://poetry.eustace.io/docs/pyproject/#scripts

@edwardgeorge Have you found a solution to this issue?
I'm facing it

@johannb75 this is working as expected at the moment. There is a feature request at #2310 regarding the expansion of this to support files.

For task runners, the community has built additional tools like https://github.com/nat-n/poethepoet to support that use case.

Was this page helpful?
0 / 5 - 0 ratings