Staging of graphics/opencv fails to install after the update of openexr from 3.0.4 to 3.0.5. Multiple missing python modules. ===> Registering installation for opencv-4.5.1_4 pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/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.8/site-packages/cv2/config-3.8.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/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.8/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.8/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.8/site-packages/cv2/python-3.8/cv2.cpython-38.so:No such file or directory *** Error code 1
Problem was unrelated to openexr. Turns out that configure found the py-numpy was built before the recent release of openblas which bumped the .so version. The configure of opencv noted the failure in numpy, but rather than throw an error, it just drops the python bindings and builds normally, except the python bindings are not there. Hence, the installation fails since those files are missing. After rebuilding py-numpy, opencv builds and installs fine. Obviously, this is not an issue for the poudrieie builds. Also, I thought policy was to bump PORTREVISION of dependent ports when shareable libs has version bumps and py-numpy had no bump. As a result, I am not closing this as I still feel that this is a bug, but the maintainer may feel otherwise. I will also drop the openplas maintainer a note.
+1 I ran into the exact issue with the missing python modules as the OP. Rebuilding math/py-numby allowed me to successfully update opencv afterwards.
+1 ....same issue. Unfortunately even after rebuilding all dependencies using: portmaster -fRd graphics/opencv it still will not install and complains of missing Python modules? No packages matched for pattern 'opencv-core-3.4.1_27' Checking integrity... done (0 conflicting) 1 packages requested for removal: 0 locked, 1 missing ===>>> Starting check for runtime dependencies ===>>> Gathering dependency list for graphics/opencv from ports ===>>> Dependency check complete for graphics/opencv ===> Installing for opencv-4.5.3_3 ===> Checking if opencv is already installed ===> Registering installation for opencv-4.5.3_3 as automatic pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/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.8/site-packages/cv2/_extra_py_code/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/site-packages/cv2/_extra_py_code/gapi/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/site-packages/cv2/config-3.8.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.8/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.8/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.8/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.8/site-packages/cv2/python-3.8/cv2.cpython-38.so: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
(In reply to kayasaman from comment #3) > No packages matched for pattern 'opencv-core-3.4.1_27' opencv-core was removed quite a while ago. Please pkg rm -f it. mfg Tobias
20210130: AFFECTS: users of graphics/opencv-core AUTHOR: tcberner@FreeBSD.org graphics/opencv-core has been reintegrated into graphics/opencv. So there is no longer a circular dependency opencv-core -> ffmpeg -> opencv If you experience problems updating the packages, try pkg delete -f opencv-core
opencv-core is not installed?? pkg info |grep opencv Doesn't show anything....
(In reply to Tobias C. Berner from comment #5) I rebuilt ffmpeg in the meantime and tried to build opencv again. Now at least opencv-core is not listed 'as installed' but unfortunately the port still will not build :( I'm trying to manually build it right now as I type this instead of using portmaster so I'll have to wait until the process completes before I have an answer as to whether it will build or not.....
Have you rebuilt py-numpy? That was the issue that I ran into. See comments
(In reply to rkoberman from comment #8) I read through all the comments and it was the first thing I tried. Unfortunately that didn't work?? :( I even got portmaster to rebuild all the dependencies but that didn't seem to work either.
Fixed byremoving requirement for gnuc for openmp support in commit 07fb2d5e9d001934f1670d01aec1f536f14ebde2