python can library error on blf writer #72
AntonioMembrino
started this conversation in
General
Replies: 1 comment
-
This does not seem to be related to this project - pyinstaller extractor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi all, I would log messages of a virtua can on a blf file. I'm using python can library. there is an error on the function write of BlfWriter.
i report here the script
` import can
def create_blf_logging(log_file_path, can_interface):
# Set up the virtual CAN interface
bus = can.interface.Bus(channel=can_interface, bustype='socketcan')
if name == "main":
log_file_path = "log_file.blf"
can_interface = "can1" # Use the virtual CAN interface (vcan0)
create_blf_logging(log_file_path, can_interface)`
the error is on the write method why : 'BLFWriter' object has no attribute 'write'?
how can I write on the file?
Beta Was this translation helpful? Give feedback.
All reactions