FreeOpcUa / opcua-client-gui

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

The requested operation has no match to return.(BadNoMatch) #56

Open Bagunda opened 3 years ago

Bagunda commented 3 years ago

I install it. In GUI it work. image

I download client-minimal.py. Change host to client = Client("opc.tcp://192.168.3.100:4840/freeopcua/server/") or client = Client("opc.tcp://192.168.3.100:4840")

And it generate error when run:

root@GP120OH:~/opcua1# python3 client-minimal.py
Objects node is:  Node(TwoByteNodeId(i=84))
Children of root are:  [Node(TwoByteNodeId(i=87)), Node(TwoByteNodeId(i=85)), Node(TwoByteNodeId(i=86))]
Traceback (most recent call last):
  File "client-minimal.py", line 32, in <module>
    myvar = root.get_child(["0:Objects", "2:MyObject", "2:MyVariable"])
  File "/usr/lib/python3/dist-packages/opcua/common/node.py", line 470, in get_child
    result.StatusCode.check()
  File "/usr/lib/python3/dist-packages/opcua/ua/uatypes.py", line 233, in check
    raise UaStatusCodeError(self.value)
opcua.ua.uaerrors._auto.BadNoMatch: The requested operation has no match to return.(BadNoMatch)