GithubHelp home page GithubHelp logo

Comments (4)

JoseIgnacioTamayo avatar JoseIgnacioTamayo commented on June 8, 2024

Hi eduardpo,

Reproducing your issue is key to understand it and fix it.

I looked for a fresh version of ietf-netconf.yang and found https://yangcatalog.org/yang-search/module_details/ietf-netconf

With this model, there seems to be no issues:

pyang --plugindir $PYBINDPLUGIN -f pybind -o outputs/binding.py models/[email protected]

How are you calling pyang and pyangbind from pyang-binder? An equivalent call to pyang works?

Looking forward to helping you with the issue.

from pyangbind.

JoseIgnacioTamayo avatar JoseIgnacioTamayo commented on June 8, 2024

Hi eduardpo,

My bad, I missed the title of the issue, stating that you use '--build-rpc' option. Then I have the same error as you reported.

'pyang --build-rpcs' would ' Generate class bindings for the input and output of RPCs defined in each module. These are placed at the root of each module'. I have first need to understand this to track and identify the Exception you reported.

from pyangbind.

JoseIgnacioTamayo avatar JoseIgnacioTamayo commented on June 8, 2024

I think the problem is that pyangbind expects the childless elements to have a 'type' defined, but 'anyxml' and 'anydata' do not have it.

Checking for the presence of 'type' before trying to build the element would fix this.

from pyangbind.

JoseIgnacioTamayo avatar JoseIgnacioTamayo commented on June 8, 2024

I was reading https://www.rfc-editor.org/rfc/rfc6020.html#section-7.10, and it seems this Issue is about implementing the 'anyxml' statement.

from pyangbind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.