Can not use can Address family not supported by protocol

my@arm-64:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 021: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

IF USE THIS SCRIPT THEN

~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0

Traceback (most recent call last):
File “/home/my/klipper/scripts/canbus_query.py”, line 64, in
main()
File “/home/my/klipper/scripts/canbus_query.py”, line 61, in main
query_unassigned(canbus_iface)
File “/home/my/klipper/scripts/canbus_query.py”, line 20, in query_unassigned
bus = can.interface.Bus(channel=canbus_iface, can_filters=filters,
File “/home/my/klippy-env/lib/python3.9/site-packages/can/interface.py”, line 127, in new
return cls(channel, *args, **kwargs)
File “/home/my/klippy-env/lib/python3.9/site-packages/can/interfaces/socketcan/socketcan.py”, line 570, in init
self.socket = create_socket()
File “/home/my/klippy-env/lib/python3.9/site-packages/can/interfaces/socketcan/socketcan.py”, line 441, in create_socket
sock = socket.socket(PF_CAN, socket.SOCK_RAW, CAN_RAW)
File “/usr/lib/python3.9/socket.py”, line 232, in init
_socket.socket.init(self, family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.