brenoah / pyang

Automatically exported from code.google.com/p/pyang
ISC License
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 <module>
    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

GoogleCodeExporter commented 9 years ago
Hi,

I cannot reproduce this one.  I downloaded 1.5 from 
https://drive.google.com/uc?export=download&id=0B7sFxp9f2Ez2allHaHZCekF3TVE&auth
user=0, started a new fresh shell without any pyang modules in the path, and 
did:

  $ tar xf pyang-1.5.tar.gz
  $ cd pyang-1.5
  $ source env.sh
  $ pyang -f tree <path-to ietf-netconf-acm.yang>

You can also check pyang/__init__.py for the line         self.features = {}
 in Class context.

Original comment by mbj4...@gmail.com on 17 Dec 2014 at 7:59