canmatrix icon indicating copy to clipboard operation
canmatrix copied to clipboard

Problem with convertion arxml to dbc

Open dragoudin opened this issue 3 years ago • 1 comments

Whein I convert my arxml file, I get the following error:

  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\__init__.py", line 88, in load
    dbs = module_instance.load(file_object, **options)  # type: ignore
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 1937, in load
    ea.open(file)
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 84, in open
    self.fill_caches()
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 71, in fill_caches
    new_ar_path = self.fill_caches(sub_element, ar_path)
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 71, in fill_caches
    new_ar_path = self.fill_caches(sub_element, ar_path)
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 71, in fill_caches
    new_ar_path = self.fill_caches(sub_element, ar_path)
  [Previous line repeated 5 more times]
  File "C:\Python\Python310\lib\site-packages\canmatrix\formats\arxml.py", line 73, in fill_caches
    ar_path += '/' + new_ar_path
TypeError: can only concatenate str (not "NoneType") to str

Seems a field in arxml is empty and it cause an error

dragoudin avatar May 06 '22 16:05 dragoudin

您的邮件已收到!              祝好             刘毅

ALUE avatar May 06 '22 16:05 ALUE

anything new here? Maybe your arxml is corrupt? Some example-file? Maybe some empty SHORT-NAME-Tag?

ebroecker avatar Dec 15 '22 14:12 ebroecker