[PyQt] No such signal QtDataVisualization::Q3DScatter::shadowQualityChanged

Nicolas ELIE nicolaselie at free.fr
Sun Sep 17 18:33:45 BST 2017


Hello,

I got the following errors when running scatter and bars examples of PyQtDataVisualization:

$ python scatter.py
QObject::connect: No such signal QtDataVisualization::Q3DScatter::shadowQualityChanged(QtDataVisualization::QAbstract3DGraph::ShadowQuality)
Traceback (most recent call last):
   File "scatter.py", line 260, in <module>
     graph.shadowQualityChanged.connect(modifier.shadowQualityUpdatedByVisual)
TypeError: connect() failed between shadowQualityChanged(QtDataVisualization::QAbstract3DGraph::ShadowQuality) and unislot()

$ python bars.py
QObject::connect: No such signal QtDataVisualization::Q3DBars::shadowQualityChanged(QtDataVisualization::QAbstract3DGraph::ShadowQuality)
Traceback (most recent call last):
   File "bars.py", line 405, in <module>
     modifier.shadowQualityUpdatedByVisual)
TypeError: connect() failed between shadowQualityChanged(QtDataVisualization::QAbstract3DGraph::ShadowQuality) and unislot()

I found this SO question which describe the same error, so I know I am not alone:https://stackoverflow.com/questions/43830556/pyqt5-typeerror-qobjectconnect-no-such-signal-qtdatavisualization
If I comment line 260 in scatter.py and lines 404-405 in bars.py, everything runs fine except the events are not connected.

I also tried to port the TextureSurface example and got stuck with the same kind of error:
QObject::connect: No such signal QtDataVisualization::Q3DSurface::selectedElementChanged(QtDataVisualization::QAbstract3DGraph::ElementType)
Traceback (most recent call last):
   File "texturesurface.py", line 442, in <module>
     modifier = SurfaceGraph(graph)
   File "texturesurface.py", line 362, in __init__
     self.m_inputHandler = CustomInputHandler(self.m_graph)
   File "texturesurface.py", line 33, in __init__
     self.graph.selectedElementChanged.connect(self.handleElementSelected)
TypeError: connect() failed between selectedElementChanged(QtDataVisualization::QAbstract3DGraph::ElementType) and unislot()

My Setup:
$ python --version
Python 3.6.1 :: Anaconda custom (64-bit)
$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:              Microsoft Windows 7 Professionnal
OS Version:           6.1.7601 Service Pack 1 version 7601
$ python -c "from PyQt5.QtDataVisualization import PYQT_DATAVISUALIZATION_VERSION_STR;print(PYQT_DATAVISUALIZATION_VERSION_STR)"
5.9
$ python -c "from PyQt5.Qt import PYQT_VERSION_STR;print(PYQT_VERSION_STR)"
5.9
$ python -c "from sip import SIP_VERSION_STR;print(SIP_VERSION_STR)"
4.19.3

I got the same errors on another computer with a different operating system (Manjaro Linux):
$ python --version
Python 3.6.2
$ uname -r
4.9.48-1-MANJARO
$ python -c "from PyQt5.QtDataVisualization import PYQT_DATAVISUALIZATION_VERSION_STR;print(PYQT_DATAVISUALIZATION_VERSION_STR)"
5.9
$ python -c "from PyQt5.Qt import PYQT_VERSION_STR;print(PYQT_VERSION_STR)"
5.9
$ python -c "from sip import SIP_VERSION_STR;print(SIP_VERSION_STR)"
4.19.3

I surely can provide more information if needed.
Did I do something wrong or is this a bug in PyQtDataVisualization?
Or maybe this is a problem with Python 3.6 since the person on SO is also using v3.6
Thanks for your help

Regards,
Nicolas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170917/5a7b500c/attachment.html>


More information about the PyQt mailing list