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

'nonetype' object has no attribute 'text' from ARXML #799

Open
dyhasolutions opened this issue Jun 18, 2024 · 0 comments
Open

'nonetype' object has no attribute 'text' from ARXML #799

dyhasolutions opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels

Comments

@dyhasolutions
Copy link

Hey

Maybe this issue is already somewhere but I cannot find it.
I'm trying to convert an ARXML file to a DBC file.

this is my output:
INFO - convert - Importing E3_1_2_Premium_FRA_V12.06.90F_P47_XIX_ESC_RBmod_20230508_Dev7_Mux.arxml ...
DEBUG - arxml - Read arxml ...
DEBUG - arxml - 33 frames in arxml...
DEBUG - arxml - 33 can-frame-triggering in arxml...
DEBUG - arxml - 0 SIGNAL-TO-PDU-MAPPINGS in arxml...
DEBUG - arxml - 2828 I-SIGNAL-TO-I-PDU-MAPPING in arxml...
DEBUG - arxml - CONTAINER-I-PDU-HEADER-BYTE-ORDER not found (default big endian)
DEBUG - arxml - Busname: ESC_CANFD01
DEBUG - arxml - Baudrate: 500000
DEBUG - arxml - processing Frame-Trigger: FT_ABS_01
DEBUG - arxml - Frame: ABS_01_XIX_ESC_CANFD01
DEBUG - arxml - PDU: ABS_01_XIX_ESC_CANFD01
DEBUG - arxml - get_signals: found I-SIGNAL-GROUP
DEBUG - arxml - processing Frame-Trigger: FT_BCS_01_SOK
DEBUG - arxml - Frame: BCS_01_SOK_XIX_ESC_CANFD01
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\cli\convert.py", line 163, in
sys.exit(cli_convert())
^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\cli\convert.py", line 158, in cli_convert
canmatrix.convert.convert(infile, outfile, **options)
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\convert.py", line 68, in convert
dbs = canmatrix.formats.loadp(infile, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\formats_init
.py", line 71, in loadp
return load(fileObject, import_type, key, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\formats_init
.py", line 88, in load
dbs = module_instance.load(file_object, **options) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\formats\arxml.py", line 2185, in load
result.update(decode_can_helper(ea, float_factory, ignore_cluster_info))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\formats\arxml.py", line 2078, in decode_can_helper
frame = get_frame(frameTrig, ea, multiplex_translation, float_factory, headers_are_littleendian)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DYHA-SOL_PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\canmatrix\formats\arxml.py", line 1607, in get_frame
auth_algorithm = ea.get_child(secured_ipdu_SecoC, "AUTH-ALGORITHM").text
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'

@dyhasolutions dyhasolutions changed the title 'nonetype' objext has no attribute 'text' from ARXML 'nonetype' object has no attribute 'text' from ARXML Jun 18, 2024
@ebroecker ebroecker self-assigned this Jun 19, 2024
@ebroecker ebroecker added the bug label Jun 19, 2024
@ebroecker ebroecker added merged and removed bug labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants