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

not able to parse .mf4 file #1090

Open
kalagouda-1008 opened this issue Oct 21, 2024 · 4 comments
Open

not able to parse .mf4 file #1090

kalagouda-1008 opened this issue Oct 21, 2024 · 4 comments

Comments

@kalagouda-1008
Copy link

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
Copy link
Author

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
Copy link
Author

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'

@danielhrisca
Copy link
Owner

please try the development branch code

@kalagouda-1008
Copy link
Author

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'

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

2 participants