ya-mouse / openopc

OpenOPC for Python3.4
Other
48 stars 56 forks source link

NameError("name 'OPC' is not defined"), <traceback object at 0x000001D87B9E0D40>) #18

Closed nandhakumarbalu closed 3 years ago

nandhakumarbalu commented 3 years ago

Can anyone help me on this

Platform :Win 10 x64bit

When I use:

import OpenOPC OPC.open_client('IP')

Getting the error as

(<class 'NameError'>, NameError("name 'OPC' is not defined"), <traceback object at 0x000001CD8C5CDF00>)

ya-mouse commented 3 years ago

You should use:

OpenOPC.open_client(...)