question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ip_extended_interarea referenced before assignment

See original GitHub issue

https://github.com/CiscoTestAutomation/genieparser/blob/9d4583ea7a8e084cc1bc42af9991a4fe79d9aafb/src/genie/libs/parser/iosxr/show_isis.py#L3937

Getting error hear when trying to learn isis on fresh install:

`Issue while building the feature

Traceback (most recent call last): File “src/genie/cli/commands/learn.py”, line 343, in genie.cli.commands.learn.LearnCommand._retrieve_ops File “/usr/local/lib/python3.6/site-packages/genie/libs/ops/isis/iosxr/isis.py”, line 752, in learn self.make(final_call=True) File “/usr/local/lib64/python3.6/site-packages/genie/ops/base/base.py”, line 101, in make self.maker.make(*args, **kwargs) File “src/genie/ops/base/maker.py”, line 312, in genie.ops.base.maker.Maker.make File “src/genie/ops/base/maker.py”, line 418, in genie.ops.base.maker.Maker._call_parser File “src/genie/metaparser/_metaparser.py”, line 271, in genie.metaparser._metaparser.MetaParser.parse File “/usr/local/lib/python3.6/site-packages/genie/libs/parser/iosxr/show_isis.py”, line 3937, in cli .setdefault(ip_extended_interarea, {})
UnboundLocalError: local variable ‘ip_extended_interarea’ referenced before assignment`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LenzDongcommented, May 26, 2020

Hi, Could you provide the device’s sample output to check? Thanks

0reactions
LenzDongcommented, Jul 9, 2020

Hi,

The parser fix is released. Please upgrade genie.libs.parser to the latest v20.6

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get a "referenced before assignment" error when ...
I think you are using 'global' incorrectly. See Python reference. You should declare variable without global and then inside the function when you...
Read more >
Local Variable Referenced Before Assignment - STechies
The “local variable referenced before assignment” error occurs when you give reference of a local variable without assigning any value. Example:
Read more >
UnboundLocalError: local variable ... - Net-Informations.Com
The unboundlocalerror: local variable referenced before assignment is raised when you try to use a variable before it has been assigned in the...
Read more >
Local vs Global and how to fix "local variable referenced ...
Local vs Global and how to fix "local variable referenced before assignment ". 2.2K views 2 years ago. Ron McKenzie. Ron McKenzie.
Read more >
local variable 'x' referenced before assignment - Python ...
UnboundLocalError: local variable 'x' referenced before assignment - Python Debugging. 46K views 9 years ago Debugging Python Errors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found