Re: Can't figure out 'instance has no attribute' error

2014-05-18 Thread Chris Angelico
On Mon, May 19, 2014 at 5:02 AM, wrote: > Thank you very much Ned, Rodri and Gary. I changed the settings of gedit text > editor as mentioned in the Zed Shaw tutorial. I think this is causing me the > problem. I'll follow your advice. > I find that there are better editors than gedit. My perso

Re: Can't figure out 'instance has no attribute' error

2014-05-18 Thread varun7rs
On Sunday, 18 May 2014 01:56:42 UTC+2, varu...@gmail.com wrote: > Hello Friends, > > > > I am working on this code but I kind of get the same error over and over > again. Could any of you help me fix this part of the error? > > > > File RW1: > > class PHY_NETWORK: > > def __init__(sel

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Gary Herron
On 05/17/2014 04:56 PM, varun...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? It's an indentation error: In the following the three function defs for __init__, addNode and

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Rhodri James
On Sun, 18 May 2014 00:56:42 +0100, wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? Shuffling your post around to make an explanation easier, the traceback is: srva@hades:~$ python

Re: Can't figure out 'instance has no attribute' error

2014-05-17 Thread Ned Batchelder
On 5/17/14 7:56 PM, varun...@gmail.com wrote: Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? File RW1: class PHY_NETWORK: def __init__(self, nodes, edges): self.nodes = nodes

Can't figure out 'instance has no attribute' error

2014-05-17 Thread varun7rs
Hello Friends, I am working on this code but I kind of get the same error over and over again. Could any of you help me fix this part of the error? File RW1: class PHY_NETWORK: def __init__(self, nodes, edges): self.nodes = nodes self.edges = edges def addN