Skip to content

TOMLDecodeError in pyproject.toml due to invalid opencv-python declaration #223

@Ad7amstein

Description

@Ad7amstein

When running pip install -e ., the following error occurs:

TOMLDecodeError: Invalid value (at line 21, column 5)

This is caused by an invalid line in pyproject.toml:

opencv-python = "^4.6.0"

# Invalid inside an arry
dependencies = [
    "PyPDF2",
    "matplotlib",
    "pyyaml",
    "frontend",
    "pymupdf",
    opencv-python = "^4.6.0"
]

This is not valid TOML syntax inside an array. It should be changed to:

"opencv-python>=4.6.0"

# The corrected line is valid inside an array
dependencies = [
    "PyPDF2",
    "matplotlib",
    "pyyaml",
    "frontend",
    "pymupdf",
    "opencv-python>=4.6.0"
]

This fix resolves the issue and allows editable install to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions