DynamicGravitySystems / DGP

Dynamic Gravity Processor
http://dgp.readthedocs.io/en/develop/
Apache License 2.0
7 stars 4 forks source link

BUG: Crash due to AttributeError in pyqtchart library. #60

Closed bradyzp closed 6 years ago

bradyzp commented 6 years ago

Symptom: Application crash when instantiating a pyqtchart Flowchart object.

Root Cause: Seems to stem from an AttributeError in the pyqtgraph.flowchart.Terminal::TerminalGraphicsItem class. Specifically line 277 during the creation of a QtGui.QGraphicsRectItem. For whatever reason the PyQt api does not recognize the positional parent attribute in the QGraphicsRectItem constructor

class TerminalGraphicsItem(GraphicsObject):
    def __init__(...):
    # Error due to self attribute passed as last positional param
        self.box = QtGui.QGraphicsRectItem(0, 0, 10, 10, self)
    # Note: supplying the named key-word 'parent' does not fix this either
    # Workaround
        self.box = QtGui.QGraphicsRectItem(0, 0, 10, 10)
        self.box.setParentItem(self)
>> pip freeze
alabaster==0.7.10
attrs==17.4.0
Babel==2.5.0
certifi==2017.7.27.1
chardet==3.0.4
colorama==0.3.9
coverage==4.4.1
cycler==0.10.0
docutils==0.14
idna==2.6
imagesize==0.7.1
Jinja2==2.9.6
MarkupSafe==1.0
matplotlib==2.0.2
numexpr==2.6.2
numpy==1.13.1
pandas==0.20.3
pluggy==0.6.0
py==1.5.2
Pygments==2.2.0
pyparsing==2.2.0
PyQt5==5.9
pyqtgraph==0.10.0
pytest==3.3.2
python-dateutil==2.6.1
pytz==2017.2
requests==2.18.4
scipy==1.0.0
sip==4.19.5
six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.6.3
sphinx-rtd-theme==0.2.4
sphinxcontrib-websupport==1.0.1
tables==3.4.2
urllib3==1.22

Running on Windows 10 build 1709

bradyzp commented 6 years ago

Closing this as irrelevant as pyqtchart's FlowChart library is no longer in use.