opcua-client-gui icon indicating copy to clipboard operation
opcua-client-gui copied to clipboard

RuntimeWarning: coroutine 'MonitoredItemService.datachange_callback' was never awaited

Open francescobianca opened this issue 3 years ago • 2 comments

Hi,

I am trying to use the following library function:

await node.delete(True, True)

where the selected node is the root node. This is the data model:

{
  "Id": "Site1",
  .....
}

image

and the selected node to delete is Site1 the output of

node_name = await node.read_display_name()
logger.debug(f"{node_name.Text}")

is Site1. (as proof)

The deletion of the object works but I don't understand from what is originated the warning.

Version
Python-Version: 3.8
opcua-asyncio Version 0.9.92

francescobianca avatar Jan 17 '22 15:01 francescobianca

where do you see that warning? are you using the UI or writting code?

oroulet avatar Feb 20 '22 20:02 oroulet

Oh yes, sorry is a problem found in the opcua-asyncio library. I have a server on which I try to call the deletion of a node but I get that warning.

francescobianca avatar Feb 21 '22 08:02 francescobianca