robshakir / pyangbind

A plugin for pyang that creates Python bindings for a YANG model.
Other
201 stars 121 forks source link

TypeError exception with ietf-netconf-acm #124

Open mathieu-mercier opened 7 years ago

mathieu-mercier commented 7 years ago

I get the following error when I try to generate bindings for http://www.netconfcentral.org/modules/ietf-netconf-acm:

pyang --plugindir $PYBINDPLUGIN -f pybind -o binding.py ietf-netconf-acm.yang could not find a match for nacm:access-operations-type type -> [u'bits'] Traceback (most recent call last): File "/usr/local/bin/pyang", line 434, in run() File "/usr/local/bin/pyang", line 408, in run emit_obj.emit(ctx, modules, fd) File "/usr/local/lib/python2.7/site-packages/pyangbind/plugin/pybind.py", line 217, in emit build_pybind(ctx, modules, fd) File "/usr/local/lib/python2.7/site-packages/pyangbind/plugin/pybind.py", line 395, in build_pybind build_typedefs(ctx, defn['typedef']) File "/usr/local/lib/python2.7/site-packages/pyangbind/plugin/pybind.py", line 546, in build_typedefs raise TypeError("could not resolve typedefs %s" % error_ids) TypeError: could not resolve typedefs [u'nacm:access-operations-type']

JoseIgnacioTamayo commented 6 months ago

Could you please try again with the latest / recent version of pyangbing, and the latest YANG module?