Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem #12

Open
omidfathi opened this issue Feb 22, 2022 · 3 comments
Open

Installation problem #12

omidfathi opened this issue Feb 22, 2022 · 3 comments

Comments

@omidfathi
Copy link

Hi
when i try to install OpenOPC by "python3 setup.py install" i get these messages :

running install
running bdist_egg
running egg_info
writing OpenOPC.egg-info/PKG-INFO
writing dependency_links to OpenOPC.egg-info/dependency_links.txt
writing top-level names to OpenOPC.egg-info/top_level.txt
reading manifest file 'OpenOPC.egg-info/SOURCES.txt'
writing manifest file 'OpenOPC.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/OpenOPC
copying build/lib/OpenOPC/OpenOPCService.py -> build/bdist.linux-x86_64/egg/OpenOPC
copying build/lib/OpenOPC/opc.py -> build/bdist.linux-x86_64/egg/OpenOPC
copying build/lib/OpenOPC/SystemHealth.py -> build/bdist.linux-x86_64/egg/OpenOPC
copying build/lib/OpenOPC/init.py -> build/bdist.linux-x86_64/egg/OpenOPC
byte-compiling build/bdist.linux-x86_64/egg/OpenOPC/OpenOPCService.py to OpenOPCService.cpython-38.pyc
File "build/bdist.linux-x86_64/egg/OpenOPC/OpenOPCService.py", line 27
print 'Pyro module required (http://pyro.sourceforge.net/)'
^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-x86_64/egg/OpenOPC/opc.py to opc.cpython-38.pyc
File "build/bdist.linux-x86_64/egg/OpenOPC/opc.py", line 78
print 'OpenOPC Command Line Client', OpenOPC.version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('OpenOPC Command Line Client', OpenOPC.version)?

byte-compiling build/bdist.linux-x86_64/egg/OpenOPC/SystemHealth.py to SystemHealth.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/OpenOPC/init.py to init.cpython-38.pyc
File "build/bdist.linux-x86_64/egg/OpenOPC/init.py", line 167
except pythoncom.com_error, err:
^
SyntaxError: invalid syntax

creating build/bdist.linux-x86_64/egg/EGG-INFO
copying OpenOPC.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying OpenOPC.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying OpenOPC.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying OpenOPC.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying OpenOPC.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/OpenOPC-1.2-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing OpenOPC-1.2-py3.8.egg
removing '/usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg' (and everything under it)
creating /usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg
Extracting OpenOPC-1.2-py3.8.egg to /usr/local/lib/python3.8/dist-packages
File "/usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg/OpenOPC/OpenOPCService.py", line 27
print 'Pyro module required (http://pyro.sourceforge.net/)'
^
SyntaxError: invalid syntax

File "/usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg/OpenOPC/init.py", line 167
except pythoncom.com_error, err:
^
SyntaxError: invalid syntax

File "/usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg/OpenOPC/opc.py", line 78
print 'OpenOPC Command Line Client', OpenOPC.version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('OpenOPC Command Line Client', OpenOPC.version)?

OpenOPC 1.2 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.8/dist-packages/OpenOPC-1.2-py3.8.egg
Processing dependencies for OpenOPC==1.2
Finished processing dependencies for OpenOPC==1.2

@elyancorrea
Copy link

Did you install Pyro module on python?

@omidfathi
Copy link
Author

Yes, i did

@omidfathi
Copy link
Author

Hello again
i wrote this program in a *.py file:

import OpenOPC
opc = OpenOPC.client()
opc.connect("opc.tcp://o-fathi:53530/OPCUA/SimulationServer")
print(opc.list())

but when i run this i get this error:

Traceback (most recent call last):
File "path", line 1, in
import OpenOPC
File "/home/oem/anaconda3/lib/python3.9/site-packages/OpenOPC/init.py", line 162
except pythoncom.com_error, err:
^
SyntaxError: invalid syntax

and i use it in ubuntu 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants