GNS3
http://forum.gns3.net/

RHEL 6 with GNS3-0.7.3
http://forum.gns3.net/topic3175.html
Page 1 of 1

Author:  diwilliams [ Sun Feb 20, 2011 1:15 pm ]
Post subject:  RHEL 6 with GNS3-0.7.3

I've got GNS3-0.7.3 installed but whenever I drag a router into the topology window I get the traceback below (same thing in GNS3-0.7.2):
Versions:
PyQt4-4.6.2-8.el6.x86_64
sip-4.9.3-1.el6.x86_64
python-2.6.5-3.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
qt-4.6.2-16.el6.x86_64

Code:
  File "/usr/local/GNS3-0.7.3/src/GNS3/Scene.py", line 777, in dropEvent
    node = object(renderer_normal, renderer_select)

  File "/usr/local/GNS3-0.7.3/src/GNS3/Node/IOSRouter2691.py", line 31, in __init__
    IOSRouter.__init__(self, renderer_normal, renderer_select)

  File "/usr/local/GNS3-0.7.3/src/GNS3/Node/IOSRouter.py", line 59, in __init__
    AbstractNode.__init__(self, renderer_normal, renderer_select)

  File "/usr/local/GNS3-0.7.3/src/GNS3/Node/AbstractNode.py", line 62, in __init__
    flags = flags | self.ItemSendsGeometryChanges

AttributeError: 'IOSRouter2691' object has no attribute 'ItemSendsGeometryChanges'

Author:  diwilliams [ Sun Feb 20, 2011 2:41 pm ]
Post subject:  Re: RHEL 6 with GNS3-0.7.3

Ok so after some poking around changing AbstractNode.py line 60:

Code:
        # scene settings
        flags = self.ItemIsMovable | self.ItemIsSelectable | self.ItemIsFocusable
        # necessary to receive itemChange() notifications with Qt >= 4.6
        if QtCore.QT_VERSION >= 0x040600:
            flags = flags | self.ItemSendsGeometryChanges
        self.setFlags(flags)
        self.setAcceptsHoverEvents(True)
        self.setSharedRenderer(self.__render_normal)

to
Code:
        # scene settings
        flags = self.ItemIsMovable | self.ItemIsSelectable | self.ItemIsFocusable
        self.setFlags(flags)
        self.setAcceptsHoverEvents(True)
        self.setSharedRenderer(self.__render_normal)


Seems to make things work again. Obviously i'm not sure what knock on effects that will have.

Author:  spoovy [ Sat Jul 23, 2011 8:08 pm ]
Post subject:  Re: RHEL 6 with GNS3-0.7.3

I was having the same problem, and your hack works for me. Thanks very much, i'll post back if there are any unexpected knock-on effects.

Author:  joeblow [ Mon Aug 08, 2011 10:57 pm ]
Post subject:  Re: RHEL 6 with GNS3-0.7.3

Thanks for posting this. same problem on SciLinux Scientific Linux release 6.0 (Carbon)

Worked for me. I'll post if any weirdnesses.

Onward!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/