Skip to content

Fix bus init failing with python-can 4.7 (listen_only property) - #2

Open
MatinF wants to merge 1 commit into
CSS-Electronics:masterfrom
MatinF:fix/listen-only-property
Open

MatinF wants to merge 1 commit into
CSS-Electronics:masterfrom
MatinF:fix/listen-only-property

Conversation

@MatinF

@MatinF MatinF commented Nov 30, 2026

Copy link
Copy Markdown

python-can #2149 (in 4.7.0) makes BusABC.listen_only a read-only property. CanSub.__init__ assigns self.listen_only, so every bus open raises NotImplementedError.

Fix: store it as _listen_only and add a read-only listen_only property. Works on python-can 4.6 and 4.7.

Tested: hardware test suite on CANsub (ETH), python-can 4.6.1 and main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant