Skip to content

paddlex pins exact versions for opencv-contrib-python and pyyaml, breaking downstream integration #5042

@CognitiveSand

Description

@CognitiveSand

All versions >=3.0 through 3.4.2 of paddlex hard-pins opencv-contrib-python==4.10.0.84 and pyyaml==6.0.2 as exact-version dependencies.

This makes it impossible for downstream projects to use paddleocr>=3.0 alongside any other library that requires newer versions of these common packages.

  • opencv-contrib-python==4.10.0.84 is from June 2024 and is missing APIs used by other ML libraries (e.g., cv2.setNumThreads behaves differently
    when mixed with opencv-python>=4.13 in the same environment).
  • pyyaml==6.0.2 less critical as not as outdated but will probably create problems later

Metadata

Metadata

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