Python 3.6.1 OpenOPC install

7.1k Views Asked by At

Pardon me for my ignorance but I can't seem to get OpenOPC installed with Python 2.7 or 3.6.1. I found the github code but it does not appear to include an installer. So I attempted to install the version for 2.7 from here. I can make the OpenOPC server talk using the instructions but after copying all the files from the python 3 project into my python directory I can import OpenOPC but when I try opc = OpenOPC.client() I get a fault.

C:\>python
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenOPC
>>> opc = OpenOPC.client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'OpenOPC' has no attribute 'client'
>>>
1

There are 1 best solutions below

0
On

It works fine for me. I have installed OpenOPC through that package thanks to pip:

pip install OpenOPC-Python3x

Hope it helps.