pyangbind icon indicating copy to clipboard operation
pyangbind copied to clipboard

"no format specified" when building a python module

Open horseinthesky opened this issue 6 years ago • 3 comments

Hello. I've just started looking on YANG and I am trying to build a python module using pyang and pyangbind.

I've exported

export PYBINDPLUGIN=`/usr/bin/env python3 -c \
'import pyangbind; import os; print ("{}/plugin".format(os.path.dirname(pyangbind.__file__)))'`

but creation fails

pyang --plugindir $PYBINDPLUGIN -f pybind -o ietf_ip_binding.py ietf-ip.yang ietf-interfaces.yang ietf-inet-types.yang ietf-inet-types.yang
no format specified

horseinthesky avatar Nov 01 '19 13:11 horseinthesky

your problem is resolved ? I also have this fail ,what is wrong ?

zhanggongc avatar Feb 18 '20 07:02 zhanggongc

I haven't worked on this since then and have no time on it now.

horseinthesky avatar Feb 18 '20 07:02 horseinthesky

Try this: pyang --plugindir=$PYBINDPLUGIN -f pybind -o ietf_ip_binding.py ietf-ip.yang ietf-interfaces.yang ietf-inet-types.yang ietf-inet-types.yang

eissefo avatar Mar 06 '20 09:03 eissefo

I believe the python executable path was wrong. Try with /usr/bin/env/python3:

export PYBINDPLUGIN=`/usr/bin/env/python3 -c \
'import pyangbind; import os; print ("{}/plugin".format(os.path.dirname(pyangbind.__file__)))'`

micafego avatar Jun 19 '23 18:06 micafego