Hi Vlado, As the error text suggests, you need one of the libraries PyQt5, PyQt6, PySide2 or PySide6 available. PyQtGraph no longer works w/ Qt4. I believe the last version to support Qt4 was 0.11.1. Generally speaking, we recommend using the latest version of Qt bindings available.
There is an issue with how PyQt5 bindings were packaged for Ubuntu 20.04 via apt, see https://github.com/pyqtgraph/pyqtgraph/issues/1882 We have implemented a work-around for that issue, but it won't be bundled until the next released version, so if you do install PyQt5 bindings via apt on Ubuntu, you'll want to run pyqtgraph from the master branch. Ogi On Sat, Aug 14, 2021 at 2:01 AM Vlado Kršlin <[email protected]> wrote: > > Hello, recently fresh release of Raspbian OS with QT4 and pyqtgraph > librarry was installed and project which run before, don't run anymore. > Here is error text which I got running my project and graph script is > attached. > With best regards, Vlado > > Error text: > > > > > > > > > > *Traceback (most recent call last): File "/home/pi/Desktop/Sušilec > sadja/Project/main.py", line 29, in <module> from graph_2 import * File > "/home/pi/Desktop/Sušilec sadja/Project/graph_2.py", line 3, in <module> > import pyqtgraph as pg File > "/usr/local/lib/python3.7/dist-packages/pyqtgraph/__init__.py", line 13, in > <module> from .Qt import QtCore, QtGui, mkQApp File > "/usr/local/lib/python3.7/dist-packages/pyqtgraph/Qt/__init__.py", line 49, > in <module> raise Exception("PyQtGraph requires one of PyQt5, PyQt6, > PySide2 or PySide6; none of these packages could be imported.")Exception: > PyQtGraph requires one of PyQt5, PyQt6, PySide2 or PySide6; none of these > packages could be imported.* > > -- > You received this message because you are subscribed to the Google Groups > "pyqtgraph" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyqtgraph/7de2bb12-21d9-4abc-b2c2-ffcf6bc09f3dn%40googlegroups.com > <https://groups.google.com/d/msgid/pyqtgraph/7de2bb12-21d9-4abc-b2c2-ffcf6bc09f3dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CA%2BnduTHP9GX-r%3DQeM8aUmJwrSqMgcHLtu5H0mt7i0YTw-LtoyQ%40mail.gmail.com.
