cogu / autosar

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

Error on Version and Schema for autosar 4 #28

Closed DeathThenNothing closed 6 months ago

DeathThenNothing commented 6 years ago

(major, minor, patch, schema) = parseAutosarVersionAndSchema(xmlroot) ValueError: not enough values to unpack (expected 4, got 3)

AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_00044.xsd"

DeathThenNothing commented 6 years ago

It is ok with autosar_4-3-0 instead of AUTOSAR_00044

cogu commented 6 years ago

Versioning is defined in an AUTOSAR specification named "ARXML Serialization Rules". You are right in that it seems like they changed the definition in AUTOSAR 4.3 to allow such numbers as AUTOSAR_00044.xsd.

As I currently only support up to AUTOSAR 4.2 my Python module will not handle it.

I will keep this issue open for a while until I have time to implement the new versioning scheme.

Thanks for notifying me about the error.

sperly commented 4 years ago

I also noticed this today. We also use 4.3.1 with the AUTOSAR_00044.xsd

cogu commented 6 months ago