cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
353 stars 160 forks source link

what does NotImplementedError: CATEGORY mean? #111

Open mixaobo opened 1 month ago

mixaobo commented 1 month ago

Hello team,

I try to ws.loadXML and got this issue. Do you have any hints about this one?

Python312\Lib\site-packages\autosar\parser\system_parser.py", line 38, in parseSystem
    raise NotImplementedError(xmlElem.tag)
NotImplementedError: CATEGORY
cogu commented 1 month ago

Hello @mixaobo,

That means the XML tag was not expected to be found as a sub-element to the tag.

The system parser is the least developed feature of the AUTOSAR Python module v0.4.x and an updated version based on the v0.5 redesign isn't yet planned.

You could try to either remove the element directly under tag from your XML or you could temporarily change line 38 to just say "pass" instead.

Both options allow the parsing to resume but since that parser is so underdeveloped there's a risk you will get stuck on another error triggered just after it.