Comments (7)
Hi,
Can you provide the output of:
/usr/bin/env python -c 'import pyangbind; import os; print "%s/plugin" % os.path.dirname(pyangbind.__file__)'
You should use whatever path is supply there (ideally the absolute path, rather than the relative one) after --plugindir.
This error (unsupported format) means that pyang is not finding the plugindir with pybind.py
in it.
Cheers,
r.
from pyangbind.
Hi,
For below command,
/usr/bin/env python -c 'import pyangbind; import os; print "%s/plugin" % os.path.dirname(pyangbind.__file__)'
output is : /usr/local/lib/python2.7/dist-packages/pyangbind-0.2.1-py2.7.egg/pyangbind/plugin
I tried with above path as follows:
pyang --plugindir /usr/local/lib/python2.7/dist-packages/pyangbind-0.2.1-py2.7.egg/pyangbind/plugin -f pybind turing-machine.yang -o bindings.py
It is still giving me the same error.
unsupported format 'pybind' error.
from pyangbind.
Does your user have permission to read the /usr/local/lib/python2.7/dist-packages/pyangbind-0.2.1-py2.7.egg/pyangbind/plugin/pybind.py
file? What version of pyang are you running, and on what distro (I assume Linux)?
from pyangbind.
I tried it with the sudo but still the same error.
I am using pyang 1.6. pyang --version
pyang 1.6
and ubuntu 12.04
My plugin directory is :
/usr/local/lib/python2.7/dist-packages/pyangbind-0.2.1-py2.7.egg/pyangbind/plugin
Why did you put pybind.py at the last?
from pyangbind.
pybind.py
is the file that defines the format of pybind
that your pyang is reporting it can't find.
How did you install pyangbind? I note that you have an egg specified in that path, but I only upload a wheel and sdist to PyPI. When I install it through pip on any Linux I have access to, it's never within an egg.
from pyangbind.
Actually I was using pip version 1.2 . I upgraded the pip on my system then installed pyangbind again. It worked.
Thanks
from pyangbind.
Great - closing.
from pyangbind.
Related Issues (20)
- Pyangbind PYPI release does not have pybindIETFXMLEncoder class HOT 1
- How to inspect yang model HOT 2
- pyangbind is not taking care of "when" statement in yang definitions. HOT 2
- Problem with list's key made of multiple leaf identifiers HOT 3
- Is pyangbind still maintained? HOT 3
- RuntimeError when importing an older revision of a YANG file HOT 1
- Failure on OpenConfig BFD Model HOT 3
- Fix binary type representation HOT 2
- Integration and Sample UnitTests using BGP are broken
- __add_metadata is not adding the @metadata object to JSON or XML HOT 2
- 0.8.3 - TypeError: cannot pickle 'lxml.etree.XMLSchema' object HOT 8
- Support `bits` type HOT 1
- pyangbind fails processing typedef union with default value
- pyangbind-0.8.4 installation failed HOT 2
- Can not be directly used in ncclient? HOT 2
- TypeError: unhandled keyword with children case HOT 3
- How to filter by leaf? HOT 3
- Process for moving a list element HOT 2
- When we generate python code from Yang module, missing attributes in class HOT 6
- Presence container support HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyangbind.