acidjunk / acidjunk/pyang

AttributeError: 'Context' object has no attribute 'features'

Aberta
#117 0 comentários 0 reações 0 responsáveis Ver no GitHub
auto-migrated Priority-Medium Type-Defect
Linguagem predominante
Python
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

```
What steps will reproduce the problem?
1. compile a module that compiled fine with 1.4.1
2.
3.

What is the expected output? What do you see instead?
1.5:
pyang -f tree ietf-netconf-acm.yang
Traceback (most recent call last):
File "/ws/struong-sjc/download/pyang/pyang-1.5/bin/pyang", line 403, in
run()
File "/ws/struong-sjc/download/pyang/pyang-1.5/bin/pyang", line 316, in run
if m.arg in ctx.features:
AttributeError: 'Context' object has no attribute 'features'

1.4.1:
The tree is produced without any error.

What version of the product are you using? On what operating system?
Problem in pyang 1.5. Testing on Linux.

Please provide any additional information below.
Every module seems to fail with 1.5.
The way I test is simply download pyang (not install) and run python against it.
```

Original issue reported on code.google.com by `sht...@gmail.com` on 12 Dec 2014 at 9:12

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Reproduce the failure with `pyang -f tree ietf-netconf-acm.yang`, then inspect `pyang-1.5/bin/pyang` around line 316 and the Context setup used by `run()`. Compare that path with the working 1.4.1 behavior; done means the command produces the tree without the `Context.features` AttributeError.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
cli, compilers
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
38/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.