I've been getting the following ambiguous error when trying to use cv2.calcHist()
>>> img
array([ 1., 2., 3., 4., 5.])
>>> cv2.calcHist( [img], channels = [0], mask = np.ones(img.size), histSize = [6], ranges = [(0,6)])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: error return without exception set
The error is so generic that I have absolutely no way of knowing what could be going wrong. You can find the function documented here. I am currently running OpenCV v2.3.1 as installed through MacPorts.
Thanks!