opcua-client-gui
opcua-client-gui copied to clipboard
Run with: opcua-client Problem
Hello, Everyone!
-
I installed PyQT 5
-
I installed python3.6.9 with python-pip3
-
I entered pip3 install opcua-client
-
I couldn't run this problem
Traceback (most recent call last):
File "/snap/opcua-client/18/bin/opcua-client", line 33, in
File "/snap/opcua-client/18/lib/python3.6/site-packages/pkg_resources/init.py", line 474, in load_entry_point return get_distribution(dist).load_entry_point(group, name)
File "/snap/opcua-client/18/lib/python3.6/site-packages/pkg_resources/init.py", line 2846, in load_entry_point return ep.load()
File "/snap/opcua-client/18/lib/python3.6/site-packages/pkg_resources/init.py", line 2450, in load return self.resolve()
File "/snap/opcua-client/18/lib/python3.6/site-packages/pkg_resources/init.py", line 2456, in resolve module = import(self.module_name, fromlist=['name'], level=0)
File "/snap/opcua-client/18/lib/python3.6/site-packages/uaclient/mainwindow.py", line 13, in
- Could you tell me what is wrong?
Thanks for you kindness help!
Hello fine-tec,
I have the same problem here. The cause is that the setuptools by default do not install subpackages. With a small change in setup.py you can fix the problem.
Change line 1 from
from setuptools import setup
to
from setuptools import setup, find_packages
and line 8 from
packages=["uaclient"],
to
packages=find_packages(),
Then you call clone the project and install via pip.
With kind regards CC
I found out a funny thing yesterday. When you install the opcua-client-gui in Linux the sub-package "theme" is installed automatically. But not if you use Windows!
I installed it both times on the same way.
- clone
- pip install -e
If you add the change described in my last comment, it will work in Windows too.
With kind regards CC