Orange Forum • View topic - error when I connect 2 nodes

error when I connect 2 nodes

A place to ask questions about methods in Orange and how they are used and other general support.

error when I connect 2 nodes

Postby jamlatino » Sun Jun 09, 2013 18:30

I´m kind of new at this so I´m trying some simple examples, when I place a "file" node, I select a data file and then I connect it to a "visualize" node such as scatter plot or Attribute Statistics, I get the following in the Output window. Is this some kind of bug or am I doing something wrong?

--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
Traceback (most recent call last):
File "C:\Python27\lib\logging\__init__.py", line 866, in emit
self.flush()
File "C:\Python27\lib\logging\__init__.py", line 828, in flush
self.stream.flush()
IOError: [Errno 9] Bad file descriptor
Logged from file scanner.py, line 120
Traceback (most recent call last):
File "C:\Python27\lib\logging\__init__.py", line 866, in emit
self.flush()
File "C:\Python27\lib\logging\__init__.py", line 828, in flush
self.stream.flush()
IOError: [Errno 9] Bad file descriptor
Logged from file scanner.py, line 120
Traceback (most recent call last):
File "C:\Python27\lib\logging\__init__.py", line 866, in emit
self.flush()
File "C:\Python27\lib\logging\__init__.py", line 828, in flush
self.stream.flush()
IOError: [Errno 9] Bad file descriptor
Logged from file scanner.py, line 120
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
--------------------------------------------------------------------------------
TypeError Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 145, in event
self.activate()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 46, in activate
self._doLayout()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\layout.py", line 59, in _doLayout
items = scene.items()
File "C:\Python27\lib\site-packages\Orange\OrangeCanvas\canvas\scene.py", line 781, in items
items = QGraphicsScene.items(self, *args, **kwargs)
TypeError: arguments did not match any overloaded call:
QGraphicsScene.items(): not enough arguments
QGraphicsScene.items(QPointF): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPolygonF, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(QPainterPath, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(float, float, float, float, Qt.ItemSelectionMode mode=Qt.IntersectsItemShape): not enough arguments
QGraphicsScene.items(Qt.SortOrder): not enough arguments
QGraphicsScene.items(QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments
QGraphicsScene.items(QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform=QTransform()): not enough arguments

Re: error when I connect 2 nodes

Postby Ales » Mon Jun 10, 2013 10:31

It seems to be a bug, but I can't duplicate it.
Which version of PyQt4 do you have installed (you can check the version in the windows control panel)? The one that came with the orange installer or did you install a different version?

Re: error when I connect 2 nodes

Postby jamlatino » Wed Jun 12, 2013 15:21

By reading a little bit in the forum, I found a solution. I deleted the PyQt folder and reinstalled orange and now everything works OK.

Re: error when I connect 2 nodes

Postby parisa » Mon Mar 10, 2014 10:39

Hi jamlatino,

I ran into the same problem. Could you please share your solution with me? What should I double check?

Re: error when I connect 2 nodes

Postby jamlatino » Mon Mar 10, 2014 22:44

As I explained above, I deleted the PyQt folder and then reinstalled Orange, that did the trick.


Return to Questions & Support