Im receiving same error, already try this and a lot things…
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.5-dev) /opt/opencv/modules/core/src/matrix_wrap.cpp:2052: error: (-213:The function/feature is not implemented) in function 'assign'
In my research another users pass through this problem, but anyone solve this with a reply. Thank you!