Skip to content
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

whenever I try to run any model I get the error like the following #65

Closed
NakWarsi opened this issue Jul 17, 2020 · 4 comments
Closed

Comments

@NakWarsi
Copy link

NakWarsi commented Jul 17, 2020

Traceback (most recent call last):
  File "generic.py", line 17, in <module>
  File "site-packages\opcua\server\server.py", line 510, in import_xml
  File "site-packages\opcua\common\xmlimporter.py", line 67, in import_xml
  File "site-packages\opcua\common\xmlimporter.py", line 84, in _add_node_data
  File "site-packages\opcua\common\xmlimporter.py", line 196, in add_object_type
  File "site-packages\opcua\ua\uatypes.py", line 218, in check
opcua.ua.uaerrors._auto.BadParentNodeIdInvalid: "The parent node id does not to refer to a valid node."(BadParentNodeIdInvalid)
[18060] Failed to execute script generic

are these models runnable with OpcUa Servers?

@swamper123
Copy link

swamper123 commented Jul 17, 2020

You may post this question in the python-opcua repo (I guess you are using their code). and check out their schemas folder as well.

@NakWarsi
Copy link
Author

but the server is running the samples I have created and few of the model from this repo also that's why I thought maybe error is there in the information models only,
and @swamper123 what you meant by checking their schema folder?

@swamper123
Copy link

The standard server() of python-opcua and opcua-asyncio use the latest public nodeset.
Try to start that one, before you import your own nodes.
If this works well, then you add your "extra Nodes"-Set, before you execute server.start(), via server.import_xml("my_own_made_extra_nodeset.xml").

If this fails, you know something is wrong with your nodeset.

Since this Nodeset is used since a couple of weeks and nobody mentioned a problem in both python repos, I guess this issue can be closed here (and in case something still went wrong, open an issue there. If realy everything seems to falling apart, we can open a new issue here again 😉).

@NakWarsi
Copy link
Author

thanks, @swamper123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants