pyangbind icon indicating copy to clipboard operation
pyangbind copied to clipboard

Pybind with error "UNUSED_IMPORT"

Open xijq227 opened this issue 7 years ago • 1 comments

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\[email protected]:10: warning: imported module junos-common-types not used

xijq227 avatar Sep 06 '18 08:09 xijq227

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.

nekatak avatar Oct 01 '18 13:10 nekatak

Closing issues with no recent activity.

JoseIgnacioTamayo avatar Feb 22 '24 21:02 JoseIgnacioTamayo