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
AttributeError for EDerivedCollection #124
Comments
Hi @fabtrie, I'm so sorry, I totally missed your issue. Thanks for the case study and the ticket! Following the message, it looks like indeed, a derived feature is responsible for this behavior. As there is currently no implementation of the AUTOSAR metamodel in Python, PyEcore relies only in dynamic metamodel to load the XMI. I will try to load your project with Eclipse, without any plugin beside EMF to see if the same behavior occurs, if yes, it means that a static AUTOSAR metamodel implementation in Python will be required, if no, it means something is wrong on the assumptions I made while decoding the metamodel. I will try to test all of that asap! Thanks again for your help in improving PyEcore and sorry again for the late answer. EDIT> I found the issue there, it comes from the fact that PyEcore doesn't deal right now with ExtendedMetadata. It seems that for derived features, when there is a |
OK. Thank you for the analysis. Actually, I used Artop before, which is an abstraction for AUTOSAR on top of EMF. This is working fine. But I want to get rid of the java dependency. If you can find a workaround, It would be highly appreciated. I need it mainly for extracting information and navigating through references. |
I am trying to load an AUTOSAR arxml file. Therefore, I created the Ecore model from the publicly available XSD. When I try to load the resource, I am getting the following error:
It looks like it has something to do with the class EDerivedCollection which does not allow to get length information.
I am using pyecore version 0.12.2.
I attached a minimal example to reproduce the issue:
pyecore_issue.zip
The text was updated successfully, but these errors were encountered: