It is currently Mon Nov 18, 2019 7:11 am


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: RHEL 6 with GNS3-0.7.3
PostPosted: Sun Feb 20, 2011 1:15 pm 
Offline

Joined: Sun Feb 20, 2011 1:04 pm
Posts: 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'




Top
 Profile  
 
 Post subject: Re: RHEL 6 with GNS3-0.7.3
PostPosted: Sun Feb 20, 2011 2:41 pm 
Offline

Joined: Sun Feb 20, 2011 1:04 pm
Posts: 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.


Top
 Profile  
 
 Post subject: Re: RHEL 6 with GNS3-0.7.3
PostPosted: Sat Jul 23, 2011 8:08 pm 
Offline

Joined: Sun Nov 21, 2010 1:02 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject: Re: RHEL 6 with GNS3-0.7.3
PostPosted: Mon Aug 08, 2011 10:57 pm 
Offline

Joined: Tue Mar 22, 2011 5:22 am
Posts: 9
Thanks for posting this. same problem on SciLinux Scientific Linux release 6.0 (Carbon)

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

Onward!




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO