etingof / snmpsim

SNMP Simulator
http://snmplabs.com/snmpsim/
BSD 2-Clause "Simplified" License
376 stars 119 forks source link

rec2rec - AttributeError: 'Namespace' object has no attribute 'mib_source' #140

Open dschultzca opened 4 years ago

dschultzca commented 4 years ago

Running the command to convert snmpwalk to snmprec, I encounter this error. I installed master from this repo 2 weeks ago. Using Python 3.6.8 on CentOS Linux release 7.7.1908 (Core)

[user@server data]$ snmpsim-manage-records --input-file=modem.snmpwalk --source-record-type=snmpwalk
Traceback (most recent call last):
  File "/home/dale/py3venv/snmp_sim/bin/snmpsim-manage-records", line 11, in <module>
    load_entry_point('snmpsim==1.0.0', 'console_scripts', 'snmpsim-manage-records')()
  File "/home/dale/py3venv/snmp_sim/lib64/python3.6/site-packages/snmpsim/commands/rec2rec.py", line 154, in main
    if not args.mib_source:
AttributeError: 'Namespace' object has no attribute 'mib_source'
thekafkaf commented 4 years ago

Its a typo and there are some more similar naming errors I fixed in #142

gainskills commented 3 years ago

Its a typo and there are some more similar naming errors I fixed in #142

Could you please suggest how you resolved the "AttributeError: 'Namespace' object has no attribute 'xxx'" issue?

There is a similar issue https://github.com/etingof/snmpsim/issues/147, want to see if I could fix it by follow your way.

Thanks,