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.