KeyError(s) while testing Flowchart.py with Python 3.4 and PySide on Windows

58 views
Skip to first unread message

David Epstein

unread,
Oct 23, 2017, 9:40:36 AM10/23/17
to pyqtgraph
I'm testing pyqtgraph for possible use in a project. I'm primarily interested in how it facilitates flowcharts that can transmit data from node to node. I'm using PyCharm and Python 3.4 on a Windows PC. When I run the Flowchart.py in the examples directory, the results window opens with the top fine and the botton plot empty. Clicking on "Flowchart" opens the flowchart. Clicking on the nodes produces the key errors below. What might cause the gaussian filter not to produce results? What might cause these errors? Additionally, is there anything that might complicate the design of a custom node that receives rows from a SQLITE database (or a previous node) using QtSql and PySide, executes a select query, and passes the resulting rows to the output? 


C:\Python34\python.exe C:/Python34/Lib/site-packages/pyqtgraph/examples/Flowchart.py
Using PySide (default graphics system)
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 888, in selectionChanged
    self.ctrl.select(n)
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 758, in select
    item = self.items[node]
KeyError: <Node Input @465ddf0>
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 888, in selectionChanged
    self.ctrl.select(n)
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 758, in select
    item = self.items[node]
KeyError: <Node Output @454d3c8>
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 888, in selectionChanged
    self.ctrl.select(n)
  File "C:\Python34\lib\site-packages\pyqtgraph\flowchart\Flowchart.py", line 758, in select
    item = self.items[node]
KeyError: <Node Output @454d3c8>

Thank you,
-david

David Epstein

unread,
Oct 23, 2017, 11:17:47 AM10/23/17
to pyqtgraph
>>>What might cause the gaussian filter not to produce results? 

Looking through the code, I think there is no actual filter--just a node name. So, that is one mystery solved.
Reply all
Reply to author
Forward
0 new messages