asammdf icon indicating copy to clipboard operation
asammdf copied to clipboard

not able to parse .mf4 file

Open kalagouda-1008 opened this issue 1 year ago • 4 comments

Python version

Please run the following snippet and write the output here

import platform
import sys
from pprint import pprint

pprint("python=" + sys.version)
pprint("os=" + platform.platform())

try:
    import numpy
    pprint("numpy=" + numpy.__version__)
except ImportError:
    pass

try:
    import asammdf
    pprint("asammdf=" + asammdf.__version__)
except ImportError:
    pass

Code

MDF version

_please write here the file version (you can run print(MDF(file).version))

Code snippet

please write here the code snippet that triggers the error

Traceback

please write here the error traceback

Description

The fastest way to debug is to have the original file. For data protection you can use the static method scramble to scramble all text blocks, and send the scrambled file by e-mail.

Please describe the issue here.

kalagouda-1008 avatar Oct 21 '24 16:10 kalagouda-1008

getting below error: asammdf - ERROR - Error during CAN logging processing: Traceback (most recent call last): File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 10439, in _process_bus_logging self._process_can_logging(index, group) File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 10665, in _process_can_logging cg_nr = self.append( ^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 2711, in append if self.version >= "4.20" and self._column_storage: ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MDF4' object has no attribute '_column_storage'

kalagouda-1008 avatar Oct 21 '24 16:10 kalagouda-1008

import platform import sys from pprint import pprint

pprint("python=" + sys.version) pprint("os=" + platform.platform())

try: import numpy pprint("numpy=" + numpy.version) except ImportError: pass

try: import asammdf pprint("asammdf=" + asammdf.version) except ImportError: pass

I executed above code, I got below output: ('python=3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 ' 'bit (AMD64)]') 'os=Windows-11-10.0.22631-SP0' 'numpy=1.26.4' ldf is not supported xls is not supported xlsx is not supported 'asammdf=7.4.5'

kalagouda-1008 avatar Oct 29 '24 13:10 kalagouda-1008

please try the development branch code

danielhrisca avatar Nov 04 '24 07:11 danielhrisca

I am using development code. still i am getting error. mdf = MDF(sample_log_file_path) for above line of code getting below error: asammdf - ERROR - Error during CAN logging processing: Traceback (most recent call last): File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 10439, in _process_bus_logging self._process_can_logging(index, group) File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 10665, in _process_can_logging cg_nr = self.append( ^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 2711, in append if self.version >= "4.20" and self._column_storage: ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MDF4' object has no attribute '_column_storage'

kalagouda-1008 avatar Nov 28 '24 13:11 kalagouda-1008