Skip to content

[ERROR (pya2l.pya2l.a2l_listener)]: ASAP2 Version '1.4' may not parsed correctly. #12

@angervision

Description

@angervision

Traceback (most recent call last):
File "C:\Users\John\Downloads\a2l2xdf-master\a2l2xdf.py", line 15, in
db.open_existing(argv[1]) if path.exists(f"{argv[1]}db") else db.import_a2l(argv[1])
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\pya2l_init_.py", line 126, in import_a2l
self.db = a2l_parser.parseFromString(prepro_result.a2l_data, dbname = str(self._dbfn), encoding = encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\pya2l\parserlib.py", line 116, in parseFromString
return self.parse(antlr4.InputStream(buf), trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\pya2l\parserlib.py", line 99, in parse
result = walker.walk(listener, tree)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\antlr4\tree\Tree.py", line 160, in walk
self.walk(listener, child)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\antlr4\tree\Tree.py", line 160, in walk
self.walk(listener, child)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\antlr4\tree\Tree.py", line 160, in walk
self.walk(listener, child)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\antlr4\tree\Tree.py", line 161, in walk
self.exitRule(listener, t)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\antlr4\tree\Tree.py", line 188, in exitRule
ctx.exitRule(listener)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\pya2l\a2lParser.py", line 4990, in exitRule
listener.exitCharacteristic(self)
File "C:\Users\John\AppData\Local\Programs\Python\Python312\Lib\site-packages\pya2l\a2l_listener.py", line 487, in exitCharacteristic
address = ctx.address.value
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'value'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions