I am trying to send can message using can-python library Getting below error AttributeError: module 'can' has no attribute 'interface'
can-python version :3.3.4 python version :3
code
import can
def send():
bus = can.interface.Bus()
msg = can.Message(arbitration_id=0x68005,data=[0x10,0x11,0x12],is_extended_id=True)
try:
bus.send(msg)
print("Message sent on {}".format(bus.channel_info))
except can.CanError:
print("Message NOT sent")'
if __name__ == '__main__':
send()
I followed this AttributeError when using python-can (module 'can' has no attribute 'interface')
didnt work for me