Closed anubisg1 closed 10 years ago
if i build on top of the json example showed in the readme it still fails:
anubisg1@linux-uau6:~/netkit> autonetkit --debug -f home.json INFO AutoNetkit 0.9.0 DEBUG Unable to load autonetkit_cisco No module named autonetkit_cisco INFO Unable to connect to visualisation server http://127.0.0.1:8000/publish ERROR Error generating network configurations: 'NoneType' object has no attribute 'is_multigraph'. More information may be available in the debug log. DEBUG Error generating network configurations Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 226, in main build_options=build_options, grid=options.grid) File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 50, in manage_network anm = build_network.build(graph) File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator return fn(_args, _kwargs) File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 256, in build anm = initialise(input_graph) File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator return fn(_args, _kwargs) File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 79, in initialise all_multigraph = input_graph.is_multigraph() AttributeError: 'NoneType' object has no attribute 'is_multigraph' Unable to build configurations.
Hi, is this the github version of ANK? if so, do you know which branch? There's a lot of code in flux for 0.9 at the moment - many core modules are being tidied up and extended.
hello,
i downloaded the "release" tarball. It's marked as 0.9.0 from here: https://github.com/sk2/autonetkit/releases
and this is the commit referred to:
https://github.com/sk2/autonetkit/commit/d22ceb03e30df7997b62bd283f5dabedf88c5fa3
it seems anyway, that running the latest git code does not have this problem :) i'm going to close this.
It's possible pulling the latest tagged version. I haven't tagged many since it's in such alpha state.
So it's quite possible the latest would be fine.
Sent from a mobile device.
On 7 May 2014, at 6:55 pm, anubisg1 notifications@github.com wrote:
Closed #239.
— Reply to this email directly or view it on GitHub.
anubisg1@linux-uau6:~/netkit/autonetkit-0.9.0/example> autonetkit --debug -f small_internet.graphml INFO AutoNetkit 0.9.0 INFO Converting graph input to undirected DEBUG [Node: as20r2]: No interfaces initialised for INFO Automatically assigning input interfaces DEBUG [Overlay: input]: Initialised interfaces for as100r1, as100r2, as100r3, as1r1, as200r1, as20r1, as20r2, as20r3, as300r1, as300r2, as300r3, as300r4, as30r1, as40r1 INFO Unable to connect to visualisation server http://127.0.0.1:8000/publish ERROR Error generating network configurations: 'NoneType' object does not support item assignment. More information may be available in the debug log. DEBUG Error generating network configurations Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 226, in main build_options=build_options, grid=options.grid) File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 50, in manage_network anm = build_network.build(graph) File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator return fn(_args, _kwargs) File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 256, in build anm = initialise(input_graph) File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator return fn(_args, _kwargs) File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 84, in initialise g_in = anm.add_overlay("input", graph=input_graph) File "/usr/lib/python2.7/site-packages/autonetkit/anm/network_model.py", line 172, in add_overlay overlay.allocate_interfaces() File "/usr/lib/python2.7/site-packages/autonetkit/anm/graph.py", line 242, in allocate_interfaces edge.raw_interfaces[src.id] = src_int_id TypeError: 'NoneType' object does not support item assignment Unable to build configurations.