I have a code using "PyOPC" library (https://github.com/ibh-systems/pyopc). I fixed all the print statements by adding () at the starting and ending.
But when I install the library, I am getting more errors.
Such as:
File "c:\anaconda3\lib\site-packages\PyOPC-0.1-py3.7.egg\PyOPC\servers\esdsrv.py", line 90
def Read(self,(IPH,inOptions,outOptions)):
^
SyntaxError: invalid syntax
File "c:\anaconda3\lib\site-packages\PyOPC-0.1-py3.7.egg\PyOPC\utils.py", line 313
def print_options((ilist,Options)):
^
SyntaxError: invalid syntax
File "c:\anaconda3\lib\site-packages\PyOPC-0.1-py3.7.egg\PyOPC\XDAClient.py", line 46
except ZSI.FaultException, z:
^
SyntaxError: invalid syntax
File "c:\anaconda3\lib\site-packages\PyOPC-0.1-py3.7.egg\PyOPC\OPCContainers.py", line 257
raise AttributeError,'Unknown complex type %s for filling'%buf
^
SyntaxError: invalid syntax
Any easy way to fix them? I listed down four main errors, can someone tell me the correct syntax in Python3?