PyQt5.QtCore' has no attribute 'Signal

3,308 views
Skip to first unread message

Jeff Grasty

unread,
Dec 8, 2021, 12:46:10 PM12/8/21
to pyqtgraph

Hi,

I am trying to run the examples but keep getting following error:

'PyQt5.QtCore' has no attribute 'Signal'

I am  using anaconda for my environment and have following packages and versions installed:

   - pip:                                                                        
     - pyqt5==5.15.6                                                            
     - pyqt5-qt5==5.15.2                                                        
     - pyqt5-sip==12.9.0                                                        
     - pyqtgraph==0.12.2

Any help would be greatly appreciated.

Thanks,
Jeff

Ognyan Moore

unread,
Dec 8, 2021, 1:21:11 PM12/8/21
to pyqt...@googlegroups.com
Hi Jeff,

This isn't a pyqtgraph issue, but a difference in the namespace that PyQt[5|6] have vs. PySide bindings.  If you want to use the PyQt5 namespace, you have to import it as such

>>> from PyQt5.QtCore import pyqtSignal
>>>


Qt abstraction libraries such as QtPy and such will rename it to Signal (from QtPy.QtCore import Signal) and in pyqtgraph's built-in abstraction layer (which you can use for your projects, but we generally do not recommend as we do not offer anywhere near the same level of coverage as AnyQt or QtPy) it would be from pyqtgraph.Qt.QtCore import Signal

Hope that helps.
Ogi

--
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/986b2d3b-df65-4033-a0fa-960b3b361dadn%40googlegroups.com.

Jeff Grasty

unread,
Dec 9, 2021, 6:13:01 AM12/9/21
to pyqtgraph
Hi Ogi,

Thanks for your help.  However, I found my problem.  I had conflicting packages in my Python environment.  I finally got it to work as expected.

Thanks,
Jeff
Reply all
Reply to author
Forward
0 new messages