Bug 256959 - graphics/opencv fails to install after openexr update to 3.0.5
Summary: graphics/opencv fails to install after openexr update to 3.0.5
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias C. Berner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-03 19:29 UTC by rkoberman
Modified: 2021-10-12 19:22 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rkoberman 2021-07-03 19:29:23 UTC
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
Comment 1 rkoberman 2021-07-06 23:26:33 UTC
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.
Comment 2 dougs@dawnsign.com 2021-07-09 15:49:58 UTC
+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.
Comment 3 kayasaman 2021-08-12 16:47:22 UTC
+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
Comment 4 Tobias C. Berner freebsd_committer freebsd_triage 2021-08-12 17:04:05 UTC
(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
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2021-08-12 17:12:19 UTC
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
Comment 6 kayasaman 2021-08-12 17:56:03 UTC
opencv-core is not installed??

pkg info |grep opencv

Doesn't show anything....
Comment 7 kayasaman 2021-08-14 01:50:42 UTC
(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.....
Comment 8 rkoberman 2021-08-14 03:17:00 UTC
Have you rebuilt py-numpy? That was the issue that I ran into. See comments
Comment 9 kayasaman 2021-08-14 03:40:47 UTC
(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.
Comment 10 rkoberman 2021-10-12 19:22:48 UTC
Fixed byremoving requirement for gnuc for openmp support in commit 07fb2d5e9d001934f1670d01aec1f536f14ebde2