0

I am trying to run the python-can library in my Rpi, the installed version is the 2.1 and I'm trying to run the code from the [Python can API][1] :

import can

can_interface = 'vcan0'
bus = can.interface.Bus(can_interface, bustype='socketcan_native')

But I get the error from the file "socketcan_native.py" line 329, in bind_socket: sock.bind((channel,))

Doest anyone knows how to fix it? [1]: https://python-can.readthedocs.io/en/2.1.0/interfaces/socketcan.html#reading-and-timeouts

0 Answers0