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

TypeError: MyStaticMibScalarInstance.getValue() got an unexpected keyword argument 'snmpEngine' #136

Open
miguel-slc opened this issue Oct 17, 2024 · 1 comment
Labels
bug Something isn't working priority:low Low priority items. triage New issues that need to be sorted out.

Comments

@miguel-slc
Copy link

Expected behavior

When running the example available in the documentation (agent-side-mib-implementations#agent-side-mib-implementations), I should be able to retrieve the value defined in the function getValue (class MyStaticMibScalarInstance)

Actual behavior

When running the example, I get the following error:
TypeError: MyStaticMibScalarInstance.getValue() got an unexpected keyword argument 'snmpEngine'

Detailed steps

Once the script is running, I performed the following command:
snmpget -v 2c -c public 127.0.0.1:20161 1.3.6.5.1.0

Python package information

certifi 2024.7.4 cffi 1.17.0 charset-normalizer 3.3.2 cryptography 43.0.0 idna 3.8 Jinja2 3.1.4 MarkupSafe 2.1.5 pip 24.2 ply 3.11 pyasn1 0.6.0 pycparser 2.22 pysmi 1.5.4 pysnmp 7.1.8 pysnmpcrypto 0.0.4 requests 2.32.3 setuptools 59.6.0 snmpsim 1.1.7 urllib3 2.2.2

Operating system information

Linux

Python information

3.10.12

(Optional) Contents of your test script

No response

Relevant log output

Exception in callback AbstractTransportDispatcher._callback_function(<pysnmp.carri...x7f000cec6110>, ('127.0.0.1', 49032), b'0&\x02\x01\...1\x00\x05\x00')
handle: <Handle AbstractTransportDispatcher._callback_function(<pysnmp.carri...x7f000cec6110>, ('127.0.0.1', 49032), b'0&\x02\x01\...1\x00\x05\x00')>
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/carrier/base.py", line 166, in _callback_function
    self.__recv_callables[recvId](
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/entity/engine.py", line 225, in __receive_message_callback
    self.message_dispatcher.receive_message(
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/proto/rfc3412.py", line 561, in receive_message
    processPdu(
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 212, in process_pdu
    self.handle_management_operation(
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 352, in handle_management_operation
    rspVarBinds = mgmtFun(*varBinds, **context)
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/smi/instrum.py", line 280, in read_variables
    return self.flip_flop_fsm(self.fsm_read_variable, *varBinds, **context)
  File "/home/test/.venv/lib/python3.10/site-packages/pysnmp/smi/instrum.py", line 244, in flip_flop_fsm
    rval = mgmtFun((tuple(name), val), **context)
  File ".py", line 474, in readGet
  File ".py", line 670, in readGet
  File ".py", line 812, in readGet
TypeError: MyStaticMibScalarInstance.getValue() got an unexpected keyword argument 'snmpEngine'
@miguel-slc miguel-slc added bug Something isn't working triage New issues that need to be sorted out. labels Oct 17, 2024
@lextudio-support
Copy link

New issues are marked as low priority by default. Becoming our commercial customers, and then your reports are handled with higher priority after triage.

@lextudio-support lextudio-support added the priority:low Low priority items. label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:low Low priority items. triage New issues that need to be sorted out.
Projects
None yet
Development

No branches or pull requests

2 participants