-
Notifications
You must be signed in to change notification settings - Fork 28
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
convert json into aasx fails #250
Comments
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) |
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 |
Yes, that is the case. |
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:
Festo2$ ls -lR .: total 12 drwxrwxr-x 3 user user 4096 Mär 11 15:02 aasx -rw------- 1 user user 446 Jan 1 1980 '[Content_Types].xml' drwxrwxr-x 2 user user 4096 Mär 11 15:02 _rels ./aasx: total 4 -rw------- 1 user user 0 Jan 1 1980 aasx-origin drwxrwxr-x 2 user user 4096 Mär 11 15:02 _rels ./aasx/_rels: total 4 -rw------- 1 user user 139 Jan 1 1980 aasx-origin.rels ./_rels: total 0
The text was updated successfully, but these errors were encountered: