Skip to content
Discussion options

You must be logged in to vote

If config-3.11.py contains:

PYTHON_EXTENSIONS_PATHS = [
    os.path.join(LOADER_DIR, 'python-3.11')
] + PYTHON_EXTENSIONS_PATHS

(which it should by default, unless you override OPENCV_PYTHON_INSTALL_PATH, which you do not seem to be doing), then it is likely that the only problem is that the extension is not collected because it is located in python-3.11 subdirectory, wheras the hook (which was written for PyPI wheels) expects it to be present in the main directory (hence you get the warning about hidden import cv2.cv2 not being found).

Can you try modifying your local copy of the hook (/usr/local/lib/python3.10/dist-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-cv2.py) and add…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rokm
Comment options

rokm Mar 14, 2023
Maintainer

Answer selected by berrylizzard
@berrylizzard
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants