mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
528 stars 342 forks source link

types.py --Missing document content #866

Open Karl-ZhangBD opened 1 year ago

Karl-ZhangBD commented 1 year ago

I'm compiling and installing netopeer-server and I'm having a problem with the following error being reported. I checked the contents of types.py and found that there is indeed no ModuleType module, but it appears in yacc.py, how should I fix this? The error is as follows: File "/usr/local/lib/python2.7/dist-packages/pyang-2.5.3-py2.7.egg/pyang/xpath_parser.py", line 357, in parser = yacc.yacc(tabmodule="xpath_parsetab", debug=False, write_tables=False) File "/usr/local/lib/python2.7/dist-packages/pyang-2.5.3-py2.7.egg/pyang/yacc.py", line 3242, in yacc if isinstance(tabmodule, types.ModuleType): AttributeError: 'module' object has no attribute 'ModuleType' Command 'pyang -p /home/work/netopeer/server/config/ -f yin /home/work/netopeer/server/config/ietf-netconf-server.yang' failed