简体   繁体   中英

Poetry - [AttributeError] 'bool' object has no attribute 'strip'

I am using poetry as a dependency manager for python, and when I'm trying to install the dependencies using poetry:

poetry install

I get this error:

$ poetry install
Installing dependencies from lock file

[AttributeError]
'bool' object has no attribute 'strip'

Any ideas on what possibly can cause this error on happening because It doesn't let the dependencies install...

Example of pyproject.toml

[tool.poetry]
name = "orex"
version = "0.1.0"
description = ""

[tool.poetry.dependencies]
python = "^3.8"
fastapi = ">=0.52.0"
SQLAlchemy = ">=1.3.12"
pydantic = {extras = ["email"], version = "^1.3"}
click = "^7.0"
alembic = "^1.3.2"
uvicorn = "^0.11.1"
passlib = "^1.7.2"

Change pydantic = {extras = ["email"], version = "^1.3"} to pydantic = "{extras = ['email'], version = '^1.3'}"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM