我正在尝试整合 JNC 和 Pyang。正如 jnc 步骤所述,我已将jnc.py复制到PYANG_HOME/pyang/plugins
. 我尝试使用以下命令生成simple.yang
java$JNC_HOME/examples/yang
类
pyang -f jnc --jnc-output src/gen/simple yang/simple.yang
面临以下错误,
Traceback (most recent call last):
File "D:/tools/pyang-master/bin/pyang", line 434, in <module>
run()
File "D:/tools/pyang-master/bin/pyang", line 408, in run
emit_obj.emit(ctx, modules, fd)
File "C:\Users\Siva\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyang-1.7-py3.5.egg\pyang/plugins\jnc.py", line 208, in emit
if module_stmt in (imported + included):
TypeError: unsupported operand type(s) for +: 'map' and 'map'
任何人都面临过这种问题。请让我知道如何解决这个问题。