Error when running python code from your website

18/09/2019 by Kvaser

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

I get this message:”, line 15, in
File “C:\Python37-32\lib\site-packages\canlib-1.8.812-py3.7.egg\canlib\”, 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

and unzip (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