Skip to content

L2 diagram/Per Area causes AttributionError. #56

@ultimatrust

Description

@ultimatrust

After loading master file (XLSX), clicking "Per Area" button in the "Layer2 Diagram" causes an exception, though pushing "All Areas" in Layer1 Diagram" has successfully generated "[L1_DIAGRAM]AllArea_interfaces.pptx."

Traceback shows as follows:

Exception in Tkinter callback
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/tkinter/init.py", line 2088, in call
return self.func(*args)

File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/network_sketcher.py", line 705, in
self.sub2_3_button_1 = tk.Button(self.sub2_3, text="Per Area", font=("", 12), command=lambda: ns_dev.ns_front_run.click_action(self,'L2-3-2'))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/ns_dev.py", line 1279, in click_action
ns_l2_diagram_create.ns_l2_diagram_create.init(self)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/ns_l2_diagram_create.py", line 130, in init
ns_l2_diagram_create.l2_area_create(self, action_type, data_array)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/ns_l2_diagram_create.py", line 427, in l2_area_create
ns_ddx_figure.ns_ddx_figure_run.init(self) # exit() # uncommented at 2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/ns_ddx_figure.py", line 99, in init
ns_ddx_figure_run.add_l2_line(self)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/Users/moto/local/src/network-sketcher-venv/network-sketcher/ns_ddx_figure.py", line 2691, in add_l2_line
for tmp_new_direction_if_2_array in self.new_direction_if_2_array:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ns_front_run' object has no attribute 'new_direction_if_2_array'
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions