Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'FLAG_MAP' #12

Open
wiemp opened this issue Jan 3, 2022 · 1 comment
Open

AttributeError: 'module' object has no attribute 'FLAG_MAP' #12

wiemp opened this issue Jan 3, 2022 · 1 comment

Comments

@wiemp
Copy link

wiemp commented Jan 3, 2022

Executing
snmpsim-command-responder --data-dir=./data --agent-udpv4-endpoint=127.0.0.1:1024

results in

Traceback (most recent call last): File "/bin/snmpsim-command-responder", line 9, in <module> load_entry_point('thola-snmpsim==1.0.0', 'console_scripts', 'snmpsim-command-responder')() File "/usr/lib/python2.7/site-packages/thola_snmpsim-1.0.0-py2.7.egg/snmpsim/commands/responder.py", line 236, in main '--debug-asn1', choices=pyasn1_debug.FLAG_MAP, AttributeError: 'module' object has no attribute 'FLAG_MAP'

Suggested fix:
snmpsim/commands/responder.py:236

   ` '--debug-asn1', choices=pyasn1_debug.FLAG_MAP,`

to

    `'--debug-asn1', choices=pyasn1_debug.flagMap,`
@wiemp
Copy link
Author

wiemp commented Jan 3, 2022

Might be related to python version 2.7 and the installed pyasn1-0.4.2-py2.7. Doesn't occur with pyasn1-0.4.8-py2.py3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant