18/09/2019 by Dynamic

When I run the python code from your website, I get error. I installed the kvaser driver and the canlib.

I get this message:
wrapper.py”, line 15, in
linux_name=’libcanlib.so’)
File “C:\Python37-32\lib\site-packages\canlib-1.8.812-py3.7.egg\canlib\dllLoader.py”, line 147, in load_dll
aKey = winreg.OpenKey(aReg, aKeyName)
FileNotFoundError: [WinError 2] The system cannot find the file specified

What Shall I do? Am I missing something?

Have you installed the Python wrapper for Kvaser CANlib SDK?

If not, go to the following address
\CANlib_installation_directory\Samples\Python

and unzip pycanlib.zip (I strongly recommend you to go through the documentation and read the part which is related to the installation and supported libraries).

Then, you may install the Python module using e.g. pip:
$ pip install canlib-x.y.z-py2.py3-none-any.whl