Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with RPi Bullseye and/or newer version of Python #7

Open
myervin opened this issue Aug 26, 2022 · 0 comments
Open

Issue with RPi Bullseye and/or newer version of Python #7

myervin opened this issue Aug 26, 2022 · 0 comments

Comments

@myervin
Copy link

myervin commented Aug 26, 2022

Hey great work on this! Using the previous coachproxy RV-C versions on my Entegra, now excited to try adding support for NMEA2000 PGN's for the boat.

I'm not a Linux guy and I don't know Python (yet), so I'm kinda stuck, here are the details, thanks!:

pi@ervinosn2k:~ $ rvc2mqtt.py
Connecting to CAN-Bus interface: can0
Traceback (most recent call last):
File "/usr/bin/rvc2mqtt.py", line 295, in
bus = can.interface.Bus(channel=args.interface, bustype='socketcan_native')
File "/usr/local/lib/python3.9/dist-packages/can/interface.py", line 101, in new
kwargs = load_config(config=kwargs, context=context)
File "/usr/local/lib/python3.9/dist-packages/can/util.py", line 192, in load_config
bus_config = _create_bus_config(config)
File "/usr/local/lib/python3.9/dist-packages/can/util.py", line 211, in _create_bus_config
raise CanInterfaceNotImplementedError(
can.exceptions.CanInterfaceNotImplementedError: Unknown interface type "socketcan_native"

Changed line 296 socketcan_native to socketcan (as per this: https://issueantenna.com/repo/spanni26/pyhpsu/issues/52) and it gets past that but then hangs:

pi@ervinosn2k:/etc $ rvc2mqtt.py
Connecting to CAN-Bus interface: can0
Loading RVC Spec file /etc/rvc/rvc-spec.yml.
Processing start...

pi@ervinosn2k:~ $ python - version
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.

Raspberry Pi 4B

pi@ervinosn2k:/proc/device-tree $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

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

No branches or pull requests

1 participant