You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Which socketcan interface to use not correctly identified #120
Then I typed in these commands in a python terminal:
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import can
>>> can.rc['interface'] = 'socketcan'
>>> bus = can.interface.Bus()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/can/interfaces/interface.py", line 79, in __new__
raise NotImplementedError("CAN interface '{}' not supported".format(interface))
NotImplementedError: CAN interface 'socketcan' not supported
I'm able to see the CAN bus under Linux via candump (I have installed all necessary modules). Here is an example:
Activity
hardbyte commentedon Jan 23, 2017
Thanks for the report - I'll have a look into it. Would you mind trying with the value
socketcan_native?remusmp commentedon Jan 24, 2017
This works:
Once again thanks!
[-]Is Linux socketcan interface not supported?[/-][+]Which socketcan interface to use not correctly identified[/+]If interface is set to socketcan in can.rc['interface'] choose which …