S Andrew
S Andrew

Reputation: 7198

Installing OPC/UA client on Linux

I have a Raspberry Pi 3, and I am trying to connect to OPC UA Server. For this I am referring to OPCUA-Client GUI. I have installed it using sudo pip install opcua-client, but it's showing an error of pyqt5.qtcore.

I have installed qt by using sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools. But still it's showing the below error:

  Traceback (most recent call last):   File "/usr/local/bin/opcua-client", line 7, in <module>
    from uaclient.mainwindow import main   File "/usr/local/lib/python2.7/dist-packages/uaclient/mainwindow.py", line 9, in <module>
    from PyQt5.QtCore import pyqtSignal, QTimer, Qt, QObject, QSettings, QModelIndex, QMimeData, QCoreApplication ImportError: No module named PyQt5.QtCore`

How do I install PyQt5.Qtcore in order to run opcua-client?

Upvotes: 1

Views: 8151

Answers (1)

S Andrew
S Andrew

Reputation: 7198

As OPCUA-Client is not compatible with Python2.7, so I had to install it using Python3.

sudo pip3 install cryptography

sudo pip3 install opcua-client

sudo apt-get install python3-pyqt5

Thanks to @eyllanesc

Upvotes: 2

Related Questions