acidjunk / acidjunk/pyang

pyang script 2.6 is giving some errors.

Aperta
#98 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
auto-migrated Priority-Medium Type-Defect
Lingua principale
Python
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```
What steps will reproduce the problem?
1.I simply ran command pyang /$YANG_DIR/mod.yang
2.By doing this I am getting the below error:

daffodil:/var/Netconf/pyang-1.4.1.tar/dist/pyang-1.4.1/build/scripts-2.6 #
pyang /var/Netconf/Modules/I36.yang
Traceback (most recent call last):
File "/usr/local/bin/pyang", line 333, in
run()
File "/usr/local/bin/pyang", line 245, in run
expect_failure_error=False)
File "/usr/local/lib64/python2.6/site-packages/pyang/__init__.py", line 99, in add_module
return self.add_parsed_module(module)
File "/usr/local/lib64/python2.6/site-packages/pyang/__init__.py", line 128, in add_parsed_module
statements.validate_module(self, module)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 95, in validate_module
iterate(module, phase)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 52, in iterate
res = f(ctx, stmt)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 185, in
('expand_1', 'module'):lambda ctx, s: v_expand_1_children(ctx, s),
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 1193, in v_expand_1_children
v_expand_1_children(ctx, s)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 1191, in v_expand_1_children
v_expand_1_children(ctx, s)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 1182, in v_expand_1_children
v_expand_1_uses(ctx, s)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 1252, in v_expand_1_uses
v_expand_1_children(ctx, stmt.i_groupings)
File "/usr/local/lib64/python2.6/site-packages/pyang/statements.py", line 1120, in v_expand_1_children
if stmt.keyword == 'grouping' and hasattr(stmt, "i_expanded"):
AttributeError: 'dict' object has no attribute 'keyword'

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

I am using pyang 2.6
Please provide any additional information below.

```

Original issue reported on code.google.com by `akula.de...@gmail.com` on 24 Dec 2013 at 5:00

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.