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

what does NotImplementedError: CATEGORY mean? #111

Open
mixaobo opened this issue May 16, 2024 · 2 comments
Open

what does NotImplementedError: CATEGORY mean? #111

mixaobo opened this issue May 16, 2024 · 2 comments

Comments

@mixaobo
Copy link

mixaobo commented May 16, 2024

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
Copy link
Owner

cogu commented May 19, 2024

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.

@gcbb
Copy link

gcbb commented Sep 11, 2024

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

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

3 participants