-
Notifications
You must be signed in to change notification settings - Fork 40
Invalid VimbaC Version error #43
Description
Hello,
I downloaded latest VimbaPython, and tried to run the following code through pyCharm:
import cv2
from vimba import *
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
if name == 'main':
print_hi('PyCharm')
with Vimba.get_instance () as vimba:
cams = vimba.get_all_cameras ()
with cams [0] as cam:
frame = cam.get_frame ()
frame.convert_pixel_format(PixelFormat.Mono8)
cv2.imwrite('frame.jpg', frame.as_opencv_image ())
I got the following error:
Traceback (most recent call last):
File "C:\Users\dlab\PycharmProjects\pythonProject\main.py", line 6, in
from vimba import *
File "C:\Users\dlab\AppData\Local\Programs\Python\Python39\Scripts\VimbaPython-master\vimba_init_.py", line 103, in
from .vimba import Vimba
File "C:\Users\dlab\AppData\Local\Programs\Python\Python39\Scripts\VimbaPython-master\vimba\vimba.py", line 30, in
from .c_binding import call_vimba_c, VIMBA_C_VERSION, VIMBA_IMAGE_TRANSFORM_VERSION,
File "C:\Users\dlab\AppData\Local\Programs\Python\Python39\Scripts\VimbaPython-master\vimba\c_binding_init_.py", line 107, in
from .vimba_c import VmbInterface, VmbAccessMode, VmbFeatureData,
File "C:\Users\dlab\AppData\Local\Programs\Python\Python39\Scripts\VimbaPython-master\vimba\c_binding\vimba_c.py", line 674, in
_lib_instance = _check_version(_attach_signatures(load_vimba_lib('VimbaC')))
File "C:\Users\dlab\AppData\Local\Programs\Python\Python39\Scripts\VimbaPython-master\vimba\c_binding\vimba_c.py", line 664, in _check_version
raise VimbaSystemError(msg.format(EXPECTED_VIMBA_C_VERSION, VIMBA_C_VERSION))
vimba.error.VimbaSystemError: Invalid VimbaC Version: Expected: 1.8.3, Found:1.8.2