pysmi icon indicating copy to clipboard operation
pysmi copied to clipboard

Jinja template rendering error when compiling DOCS-IF3-MIB

Open seimnseimn opened this issue 1 year ago • 3 comments

I get

error from <pysmi.codegen.pysnmp.PySnmpCodeGen object at 0xffff8fe13110>: Jinja template rendering error: 'collections.OrderedDict object' has no attribute 'default' at MIB DOCS-IF3-MIB

when compiling DOCS-IF3-MIB from http://mibs.cablelabs.com/MIBs/DOCSIS/Archive-PreviousVersions/DOCS-IF3-MIB-2020-06-25.txt

I don't see any serious issues when checking with https://www.simpleweb.org/ietf/mibs/validate/ and using a quite old pysmi (0.3.4) it works also fine.

let me know if you need more info to help me out.

seimnseimn avatar Jul 12 '24 19:07 seimnseimn

Related to #68

You can read more from https://github.com/etingof/pysnmp/issues/429

lextm avatar Jul 12 '24 19:07 lextm

Thx for the fast reply. I applied #68 but it does not seem to solve my issue. Can you maybe elaborate a bit more? I would be grateful.

EDIT: Sorry I was in the wrong repo. I actually use the "lextudio/pysmi" with TAG 1.4.3 This is where I got above error.

seimnseimn avatar Jul 12 '24 20:07 seimnseimn

Cannot reproduce what you described. That DOCS-IF3-MIB file compiles without a problem on my side (using mibdump command line).

If you want to open an issue on https://github.com/lextudio/pysnmp/issues, more details will have to be added.

lextm avatar Jul 13 '24 03:07 lextm