Closed Kuchsn closed 6 months ago
i figured out, that "json_file_data" is empty?
with open('./data/Festo.json', encoding='utf-8-sig') as json_file:
json_file_data = aas_json.read_aas_json_file(json_file)
print("Type of json_file_data:", type(json_file_data))
print("Number of AAS objects in json_file_data:", len(json_file_data))
Type of json_file_data: <class 'basyx.aas.model.provider.DictObjectStore'>
Number of AAS objects in json_file_data: 0
if i read the json normal i can see all
with open('./data/Festo.json', 'r') as file:
data = json.load(file)
print(data)
i get this response:
"text": "While reading the ./aasxs/Festo2.aasx (and indirectly over /tmp/tmppTj8iJ.aasx) at /AdminShellPackageEnv.cs:line 420 gave: Unable to find AASX origin. Aborting!",
Same issue as #185, the server you're using is probably using outdated OPC Relationship types.
As for the issue with the seemingly empty JSON file: It's possible that the file uses incorrect attribute names, that aren't recognized by our SDK. You can try validating this file against the official schemata using our compliance tool: https://basyx-python-sdk.readthedocs.io/en/latest/compliance_tool/index.html
Related to eclipse-aaspe #161 and #232 Edit: most aasx, json and xml EXAMPLE file are old specification!
Yes, that is the case. Currently, as far as I know, the IDTA has no maintenance process for submodel templates, therefore there is no one responsible for updating them. However, I have heard that they are aware of this problem and are working on a solution.
Hey together, i try now since 3 days to read a json from Festo(Example) and safe it as a aasx file. But the file doesn't contain the expected data. What i am doing wrong?
Festo.json This programm end without an error. If i try to upload it on a local server:
i get this response: