I looked into it and found that there is bug in CVBpy. It is fixed in the current development branch.
If you contact our support I can provide you with a patch.
Please keep in mind that the patch is development version that might contain other/new bugs.
Here is some code that should fail with your version but run with that patch.
import os
import cvb
dev = cvb.DeviceFactory.open(os.path.join(cvb.install_path(), "drivers", "GenICam.vin"))
#asuming that the vin driver configures 3 buffers by default.
dev.stream.ring_buffer.change_count(5, cvb.DeviceUpdateMode.UpdateDeviceImage)
with dev:
dev.stream.start()
for i in range(10):
print("Image: " + str(i))
image, status = dev.stream.wait(10000)
if status == cvb.WaitStatus.Ok:
print("Buffer: " + str(image.buffer_index))
dev.stream.abort()
print("test over")