error none of these packages could be imported

2,045 views
Skip to first unread message

crouc...@bigpond.com

unread,
Dec 11, 2017, 11:07:14 PM12/11/17
to pyqtgraph
Hi I am running python3.5.4 on a windows7 pc and am trying to use this pyqtgraph import  . I'm wondering if i am wasting my time with this. Can any one tell me if it is do-able, should I try installing the other below mentioned libraries or just give up.

  import pyqtgraph as pg
  File "C:\Users\david000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyqtgraph\__init__.py", line 13, in <module>
    from .Qt import QtGui
  File "C:\Users\david000\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyqtgraph\Qt.py", line 44, in <module>
    raise Exception("PyQtGraph requires one of PyQt4, PyQt5 or PySide; none of these packages could be imported.")
Exception: PyQtGraph requires one of PyQt4, PyQt5 or PySide; none of these packages could be imported.
>>> 
Thanks
David

Carlos Pascual

unread,
Dec 12, 2017, 3:44:44 AM12/12/17
to pyqt...@googlegroups.com
Yes, you should install at least one of the mentioned libraries (I personally
suggest PyQt5)

On Monday, December 11, 2017 8:07:14 PM CET crouc...@bigpond.com wrote:
> Hi I am running python3.5.4 on a windows7 pc and am trying to use this
> pyqtgraph import . I'm wondering if i am wasting my time with this. Can
> any one tell me if it is do-able, should I try installing the other below
> mentioned libraries or just give up.
>
> import pyqtgraph as pg
> File
> "C:\Users\david000\AppData\Local\Programs\Python\Python35-32\lib\site-packag
> es\pyqtgraph\__init__.py", line 13, in <module>
> from .Qt import QtGui
> File
> "C:\Users\david000\AppData\Local\Programs\Python\Python35-32\lib\site-packag
> es\pyqtgraph\Qt.py", line 44, in <module>
> raise Exception("PyQtGraph requires one of PyQt4, PyQt5 or PySide; none
> of these packages could be imported.")
> Exception: PyQtGraph requires one of *PyQt4*, *PyQt5 *or *PySide*; none of
> these packages could be imported.
>
> Thanks
> David


--
+----------------------------------------------------+
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: cpas...@cells.es
Phone: +34 93 592 4428
+----------------------------------------------------+

crouc...@bigpond.com

unread,
Dec 12, 2017, 3:46:18 PM12/12/17
to pyqtgraph
HI
That seems to have fixed it. 
(I used pip3.5 install PyQt5)
Thanks, David
Reply all
Reply to author
Forward
0 new messages