Skip to content

cv2.typing module is missing from generated wheels #869

@Avasam

Description

@Avasam

Expected behaviour

Since opencv/opencv#23798 , OpenCV should have a typing module available at runtime. It used to be a type-stub-only and was included as part of dev wheels I downloaded last month from GitHub Actions.

Actual behaviour

cv2/typing/__init__.py is missing.

Steps to reproduce

  • pip install opencv-python-headless==4.8.0.74
  • Notice the lack of cv2.typing
>>> import cv2.typing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2.typing'

image

Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency") I think so, assuming it isn't an issue with how OpenCV generates the module.
  • I'm using the latest version of opencv-python

Metadata

Metadata

Assignees

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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy