Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli arpnd, address, and interface fail #28

Closed
jopietsch opened this issue Feb 6, 2020 · 2 comments
Closed

cli arpnd, address, and interface fail #28

jopietsch opened this issue Feb 6, 2020 · 2 comments

Comments

@jopietsch
Copy link
Member

jpiet> interface show
Error running command: local variable 'add_flds' referenced before assignment

Traceback (most recent call last):
File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/nubia/internal/cmdbase.py", line 374, in run_interactive
ret = fn(**args_dict)
File "/tmp/pycharm_project_1000/suzieq/suzieq/cli/sqcmds/InterfaceCmd.py", line 67, in show
type=type.split(),
File "/tmp/pycharm_project_1000/suzieq/suzieq/sqobjects/basicobj.py", line 125, in get
return self.engine_obj.get(**kwargs)
File "/tmp/pycharm_project_1000/suzieq/suzieq/engines/pandas/engineobj.py", line 201, in get
df = self.get_valid_df(self.iobj._table, sort_fields, **kwargs)
File "/tmp/pycharm_project_1000/suzieq/suzieq/engines/pandas/engineobj.py", line 126, in get_valid_df
**kwargs
File "/tmp/pycharm_project_1000/suzieq/suzieq/engines/pandas/engine.py", line 173, in get_table_df
add_flds.add('active')
UnboundLocalError: local variable 'add_flds' referenced before assignment

I kind of understand why this if failing and might even be able to fix it.

However, I don't understand how tests are passing and I don't understand why any other commands work

@ddutt
Copy link
Member

ddutt commented Feb 6, 2020

I don't understand why this is failing. Can you give more data when it happens? I don't see it fail when I try. add_flds gets assigned on line 137

@jopietsch
Copy link
Member Author

I can't reproduce this after starting a new instance. I reproduced it yesterday several times, I believe with different data and I definitely restarted the cli. so I have no idea what was going on.

LucaNicosia pushed a commit that referenced this issue Apr 20, 2022
Signed-off-by: Dinesh Dutt <dd.ps4u@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants