Discussion:
[pyqtgraph] when install pyqt4, an error happen for "from pyqtgraph.Qt import QtWidgets"
Deckard Zhang
2018-10-30 15:24:51 UTC
Permalink
when only install pyqtgraph, it is ok to run "from pyqtgraph.Qt import
QtWidgets"
however, when I install pyqt4 together, an error happen when run
"from pyqtgraph.Qt import QtWidgets"

ImportError: cannot import name QtWidgets


What's wrong? Thank you
--
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 pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9ff322d1-f746-4070-8f22-f4594b0fceb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Carlos Pascual
2018-10-31 07:50:21 UTC
Permalink
QtWidgets was introduced in Qt5. See :
http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html#qtgui-module

If you are using PyQt4, you should import QtGui instead of QtWidgets
Post by Deckard Zhang
when only install pyqtgraph, it is ok to run "from pyqtgraph.Qt import
QtWidgets"
however, when I install pyqt4 together, an error happen when run
"from pyqtgraph.Qt import QtWidgets"
ImportError: cannot import name QtWidgets
What's wrong? Thank you
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
ALBA Synchrotron [http://www.albasynchrotron.es]
Carrer de la Llum 2-26
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: ***@cells.es
Phone: +34 93 592 4428
+----------------------------------------------------+
--
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 pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/11677936.SaUXGsCNau%40pc218.
For more options, visit https://groups.google.com/d/optout.
Loading...