robshakir / pyangbind

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

Pybind with error "UNUSED_IMPORT" #225

Closed xijq227 closed 9 months ago

xijq227 commented 6 years ago

Hi,

attempting to generate a python class from junos-conf-interfaces.yang

$ pyang --plugindir env/Lib/site-packages/pyangbind/plugin/ -f pybind -o junos_conf_interfaces.py -p yang_modules/ yang_modules/18.2R1/junos/conf/junos-conf-interfaces\@2018-01-01.yang
INFO: encountered (<pyang.error.Position object at 0x0000000007124678>, 'UNUSED_IMPORT', u'junos-common-types')
yang_modules/18.2R1\junos\conf\junos-conf-root@2018-01-01.yang:10: warning: imported module junos-common-types not used
nekatak commented 6 years ago

This is exactly as the error says. Remove that unused import from junos-conf-root and will generate the classes. Had the same issue days ago.

JoseIgnacioTamayo commented 9 months ago

Closing issues with no recent activity.