etingof / pysmi

SNMP MIB parser
http://snmplabs.com/pysmi/
BSD 2-Clause "Simplified" License
132 stars 51 forks source link

Jinja template rendering error when compiling DOCS-IF3-MIB #72

Open seimnseimn opened 1 month ago

seimnseimn commented 1 month ago

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.

lextm commented 1 month ago

Related to #68

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

seimnseimn commented 1 month ago

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.

lextm commented 1 month ago

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.