morefigs / pymba

Python wrapper for Allied Vision's Vimba C API
MIT License
105 stars 84 forks source link

Fix for 'VimbaC.dll' not found error #96

Closed sudheerExperiments closed 5 years ago

sudheerExperiments commented 5 years ago

pymba library fails to load 'VimbaC.dll' upon importing it in python. This fix solves the problem.

File "", line 1, in File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba__init__.py", line 1, in from .vimba import Vimba, VimbaException File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\vimba.py", line 5, in from .system import System File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\system.py", line 1, in from .vimba_object import VimbaObject File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\vimba_object.py", line 5, in from .feature import Feature, _FEATURE_DATA_COMMAND File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\feature.py", line 5, in from . import vimba_c File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\vimba_c.py", line 43, in vimbaC_path = find_win_dll(64) File "C:\Users\phantom\Anaconda3\envs\py36\lib\site-packages\pymba\vimba_c.py", line 38, in find_win_dll raise IOError("VimbaC.dll not found.") OSError: VimbaC.dll not found.

morefigs commented 5 years ago

This looks like a workaround. You should make sure Vimba is installed properly, then C:\Program Files\Allied Vision\Vimba_%i.%i\VimbaC\Bin\Win%i\VimbaC.dll should be found as needed.