FreeOpcUa / opcua-client-gui

OPC-UA GUI Client
GNU General Public License v3.0
534 stars 176 forks source link

RuntimeWarning: coroutine 'MonitoredItemService.datachange_callback' was never awaited #76

Open francescobianca opened 2 years ago

francescobianca commented 2 years ago

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

oroulet commented 2 years ago

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

francescobianca commented 2 years ago

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.