- Notifications
You must be signed in to change notification settings - Fork 653
Description
Describe the bug
asc_msg = next(asc_iter, None)
File "D:\ProgramData\Anaconda3\envs\qt_env\lib\site-packages\can\io\asc.py", line 131, in iter
frame.append(int(byte, 16))
ValueError: invalid literal for int() with base 16: 'Length'
To Reproduce
I replay the asc file use CANoe, find there is Can overload Frame。And when the error raised, the DLC is 13. I don't know if this 13 DLC is affected by Can overload Frame or not.
['C2', '4A', '05', '81', '00', '00', '15', '10', 'Length', '=', '225910', 'BitCount', '=', '117', 'ID', '=', '545']
8
['55', 'AA', '01', '02', '03', '04', '05', '06', 'Length', '=', '229910', 'BitCount', '=', '119', 'ID', '=', '1023']
13
asc_msg = next(asc_iter, None)
File "D:\ProgramData\Anaconda3\envs\qt_env\lib\site-packages\can\io\asc.py", line 131, in iter
frame.append(int(byte, 16))
ValueError: invalid literal for int() with base 16: 'Length'
Expected behavior
Can parse asc file in any condition
Additional context
OS and version: win10
Python version:3.8.5
python-can version:3.3.4
python-can interface/s (if applicable):
Traceback and logs
def func(): return "hello, world!"