Skip to content

Commit 2282bfc

Browse files
'can.interface' NOT 'can.interfaces.interface' (#762)
I was getting the following error (see below) #################################################################### C:\Users\arovellequartz>python auden_scratchpad_002.py Traceback (most recent call last): File "auden_scratchpad_002.py", line 18, in <module> from can.interfaces.interface import Bus ModuleNotFoundError: No module named 'can.interfaces.interface' #################################################################### Co-authored-by: Brian Thorne <[email protected]>
1 parent e495478 commit 2282bfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/configuration.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ In Code
1111
-------
1212

1313
The ``can`` object exposes an ``rc`` dictionary which can be used to set
14-
the **interface** and **channel** before importing from ``can.interfaces``.
14+
the **interface** and **channel**.
1515

1616
::
1717

1818
import can
1919
can.rc['interface'] = 'socketcan'
2020
can.rc['channel'] = 'vcan0'
2121
can.rc['bitrate'] = 500000
22-
from can.interfaces.interface import Bus
22+
from can.interface import Bus
2323

2424
bus = Bus()
2525

@@ -79,7 +79,7 @@ The configuration can also contain additional sections (or context):
7979

8080
::
8181

82-
from can.interfaces.interface import Bus
82+
from can.interface import Bus
8383

8484
hs_bus = Bus(context='HS')
8585
ms_bus = Bus(context='MS')

0 commit comments

Comments
 (0)