-
Notifications
You must be signed in to change notification settings - Fork 373
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
OPCUA version not supported "Server doesn't satisfy required XML-Models. Import them first!" #1019
Comments
We are currently using http://opcfoundation.org/UA/ version 1.04.10 we haven't updated the library yet. |
Thank you for you quick answer. |
I tried it some time ago and there were some code changes needed to get UA 1.05 working. |
I tried updating the schemas with /~https://github.com/FreeOpcUa/opcua-asyncio/tree/master/schemas
I was thinking that the files would be updated into my folder. But this is not the case. Therefore I tried importing a specific nodeset version of UA with the import_xml command but it does not work nodesua = await server.import_xml("UA-Nodeset-master/Schema/Opc.Ua.NodeSet2.xml") However, I receive this error Exception has occurred: BadNodeIdExists
"The requested node id is already used by another node."(BadNodeIdExists)
File "D:\CESI\DEV\OPCUA_modeler\test\server-uamodeler-variable.py", line 35, in main
nodesua = await server.import_xml("D:/CESI/DEV/opcua-asyncio - test update UANodeset/schemas/UA-Nodeset-master/Schema/Opc.Ua.NodeSet2.xml")
File "D:\CESI\DEV\OPCUA_modeler\test\server-uamodeler-variable.py", line 54, in <module>
asyncio.run(main()) Can you explain me how to update to the right version ? |
The descrpiton is maybe a bit out of date.
|
Thank you again for your answer. Indeed, it does not work on Windows for me. |
Update to 1.05.02 see #1047 |
Schema generation works know under windows in #1049 . Also you can chose now which branch and/or tag to use, via commandline. |
Describe the bug
The asyncua does not support http://opcfoundation.org/UA/ model >1.04.7.
To Reproduce
Create a UA model from UAmodeler, with base version 1.04.7 of UA model http://opcfoundation.org/UA/
Export it to a Nodeset.xml (see attached file)
Run the server
it works.
Do the exact same thing with http://opcfoundation.org/UA/ version=1.04.11 or above
It does not work
Error is:
Exception has occurred: ValueError
Server doesn't satisfy required XML-Models. Import them first!
Expected behavior
Being able to use all versions of UA model
Or
being able to init server with the Opc.Ua.NodeSet2.xml used during design phases.
for example by doing:
Version
Python-Version:3.10.4
opcua-asyncio Version (e.g. master branch, 0.9): master branch
Files to test (please modify extension to xml):
server-uamodeler-objecttypes-datatype-1_04_7-v4 - 1_04_11.xml.txt
server-uamodeler-objecttypes-datatype-1_04_7-v4.xml.txt
The text was updated successfully, but these errors were encountered: