autosar icon indicating copy to clipboard operation
autosar copied to clipboard

what does NotImplementedError: CATEGORY mean?

Open mixaobo opened this issue 1 year ago • 2 comments

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

mixaobo avatar May 16 '24 22:05 mixaobo

Hello @mixaobo,

That means the <CATEGORY> XML tag was not expected to be found as a sub-element to the <SYSTEM>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 <CATEGORY> element directly under <SYSTEM> 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.

cogu avatar May 19 '24 14:05 cogu

我在原来的文件中重写了 CATEGORY的读取, 解析 和回写, 也没啥问题

gcbb avatar Sep 11 '24 09:09 gcbb

Won't be fixed in v0.4.

cogu avatar Oct 28 '24 18:10 cogu