maintainer-feedback requested: [Bug 264 933] graphics/opencv : pkg-static: Unable to access file /usr/ports/graphics/opencv/work/s tage/usr/local/lib/python3.9/site-packages/cv 2/__init__.py : No such file or directory

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 27 Jun 2022 20:26:31 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 264933: graphics/opencv : pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/__init__.py : No such file or directory
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264933



--- Description ---
Hello.

I'm On FreeBSD 13.1-RELEASE,I'm trying to compile opencv-4.5.5_7 with JAVA
enabled,but the compilation fails as follows :

.........

===>  Installing for opencv-4.5.5_7
===>  Checking if opencv is already installed
===>   Registering installation for opencv-4.5.5_7
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/config-3.9.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/config.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/gapi/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/load_config_py2.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/load_config_py3.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/mat_wrapper/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/misc/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/misc/version.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/python-3.9/cv2.cpython-39.so:No
such file or directory
pkg-static: Unable to access file
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2
/utils/__init__.py:No
such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/opencv
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/opencv

what can I do ? The missing folder starts at
/usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9 ; it's the folder
python3.9 that's totally missing.