AttributeError: 'Context' object has no attribute 'features'
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
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
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli, compilers
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100