FS#77675 - vtk 9.2.5 breaks python-opencv

Attached to Project: Community Packages
Opened by Hu Zhangzhi (Integral) - Tuesday, 28 February 2023, 14:56 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 01 March 2023, 18:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After the recent upgrade, python-opencv were broken by vtk 9.2.5.

Additional info:
* package version(s) vtk 9.2.5-2
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
python -c "import cv2"
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 01 March 2023, 18:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  opencv 4.7.0-3
Comment by Hu Zhangzhi (Integral) - Tuesday, 28 February 2023, 14:57 GMT
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /usr/lib/libopencv_viz.so.407: undefined symbol: _ZN12vtkAlgorithm8RegisterEP13vtkObjectBase
Comment by DarcyHu (DarcyHu) - Wednesday, 01 March 2023, 06:38 GMT
A quick fix, rebuild opencv with `WITH_OPENGL=OFF`.
Comment by Philip Whitfield (underdoeg) - Wednesday, 01 March 2023, 12:10 GMT
This also breaks c++ applications linking opencv. Downgrading vtk seems to work as well.

Loading...