Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71534
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-05-13 23:49 -0700 |
| References | <2c8cb313-50f6-439b-a979-bd320a2c7b2c@googlegroups.com> |
| Message-ID | <e5739cae-7fe5-4f63-95ec-cad7ce5190d8@googlegroups.com> (permalink) |
| Subject | Re: Need help to write data onto an XML file after reading data from another xml file |
| From | varun7rs@gmail.com |
I try to add an edge with the source id and destination id over a loop but this is the error I am getting. And the range for the for addEdge is something I have no clue about.
python export.py --output topology.xml --xml germany50.xml
Traceback (most recent call last):
File "export.py", line 239, in <module>
main(sys.argv[1:])
File "export.py", line 234, in main
network.addEdge( PHY_LINKS( j , sourcen, destnn, sid, did, cap_bdw) )
File "/home/srva/Approach_Read.py", line 89, in addEdge
self.nodes[ edge.SourceID ].addInEdge( edge )
IndexError: list index out of range
Thank You
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-13 07:31 -0700
Re: Need help to write data onto an XML file after reading data from another xml file Dave Angel <d@davea.name> - 2014-05-13 22:09 -0400
Re: Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-13 23:49 -0700
Re: Need help to write data onto an XML file after reading data from another xml file Dave Angel <davea@davea.name> - 2014-05-14 03:32 -0400
Re: Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-14 06:42 -0700
Re: Need help to write data onto an XML file after reading data from another xml file Chris Angelico <rosuav@gmail.com> - 2014-05-14 23:49 +1000
csiph-web