Poetry: Unexpected character: '[' at line 17 col 91

Created on 1 Jan 2020  路  4Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • macOS Mojave 10.14.6:
  • 1.0.0:
  • pyproject.toml file:
[tool.poetry]
name = "wear-zozo"
version = "0.1.0"
description = ""
authors = ["hrsma2i <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.6"
numpy = "^1.18"
tqdm = "^4.41"
aiohttp = "^3.6"
asyncio = "^3.4"
Pillow = "^6.2"
jupyter = "^1.0"
mypy = "^0.761.0"
black = {version = "^18.3-alpha.0", allows-prereleases = true}
aiodl = {git = "[email protected]:hrsma2i/aiodl.git@04d916dcf2ac552827e3e8781e2d81301f0b9a1c"}[tool.poetry.dev-dependencies]
flake8 = "^3.7"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Issue

poetry shell doesn't work throwing the following error.

Unexpected character: '[' at line 17 col 91
Bug

Most helpful comment

@hrsma2i How did you solve this issue? I am having a similar issue with python -m poetry add flask (and other packages besides flask).

It appears if pyproject.toml does not end with a newline, this behavior happens.

All 4 comments

I solved this issue.

@hrsma2i How did you solve this issue? I am having a similar issue with python -m poetry add flask (and other packages besides flask).

@hrsma2i How did you solve this issue? I am having a similar issue with python -m poetry add flask (and other packages besides flask).

It appears if pyproject.toml does not end with a newline, this behavior happens.

I solved this issue.

It would be great if you shared HOW you solved this issue. I was still getting this error and it turns out that someone (probably me) had deleted a carriage return and one of my stanza headers had concatenated onto the previous line. I added the carriage return / newline back in and it fixed the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Euphorbium picture Euphorbium  路  3Comments

mozartilize picture mozartilize  路  3Comments

ambv picture ambv  路  3Comments

probablykasper picture probablykasper  路  3Comments

kierun picture kierun  路  3Comments