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

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

Open
angervision opened this issue Oct 2, 2023 · 0 comments

Comments

@angervision
Copy link

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'

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

1 participant