opcua-asyncio/examples/simple-client-server-xml/ #794
Unanswered
FatimaRani
asked this question in
Q&A
Replies: 1 comment
-
looks like a missing await in front of the get_child() method! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
cant even run this simple example
getting error
C:\Users\Fatima\PycharmProjects\pythonOPCUA\venv\Scripts\python.exe C:/Users/Fatima/PycharmProjects/pythonOPCUA/server-xml.py
C:\Users\Fatima\PycharmProjects\pythonOPCUA\server-xml.py:53: RuntimeWarning: coroutine 'Server.import_xml' was never awaited
self.server.import_xml(model_filepath)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "C:\Users\Fatima\PycharmProjects\pythonOPCUA\server-xml.py", line 82, in
with HelloServer(
File "C:\Users\Fatima\PycharmProjects\pythonOPCUA\server-xml.py", line 62, in init
hellower_say_hello = hellower.get_child("0:SayHello")
AttributeError: 'coroutine' object has no attribute 'get_child'
sys:1: RuntimeWarning: coroutine 'Server.get_namespace_index' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
sys:1: RuntimeWarning: coroutine 'Node.get_child' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Beta Was this translation helpful? Give feedback.
All reactions