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

is it support python 3.6 ? #221

Open
muhamedoufi opened this issue May 16, 2023 · 1 comment
Open

is it support python 3.6 ? #221

muhamedoufi opened this issue May 16, 2023 · 1 comment

Comments

@muhamedoufi
Copy link

[2023-05-16 12:51:12,866: ERROR/ForkPoolWorker-1] poll error: Traceback (most recent call last):
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher
    use_poll=True, map=self.__sockMap, count=1)
;  File "/usr/lib/python3.6/asyncore.py", line 207, in loop
    poll_fun(timeout, map)
;  File "/usr/lib/python3.6/asyncore.py", line 188, in poll2
    readwrite(obj, flags)
;  File "/usr/lib/python3.6/asyncore.py", line 123, in readwrite
    obj.handle_error()
;  File "/usr/lib/python3.6/asyncore.py", line 108, in readwrite
    obj.handle_read_event()
;  File "/usr/lib/python3.6/asyncore.py", line 423, in handle_read_event
    self.handle_read()
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/carrier/asyncore/dgram/base.py", line 170, in handle_read
    self._cbFun(self, transportAddress, incomingMessage)
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/carrier/base.py", line 70, in _cbFun
    self, transportDomain, transportAddress, incomingMessage
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
    self, transportDomain, transportAddress, wholeMsg
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
    msgVersion = verdec.decodeMessageVersion(wholeMsg)
;  File "/var/www/html/venv/lib/python3.6/site-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
    recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
;  File "/var/www/html/venv/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
    for asn1Object in streamingDecoder:
;  File "/var/www/html/venv/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
    self._substrate, self._asn1Spec, **self._options):
;  File "/var/www/html/venv/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
    self, substrateFun, **options):
;  File "/var/www/html/venv/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
    for chunk in substrateFun(asn1Object, substrate, length, options):
;TypeError: () takes 3 positional arguments but 4 were given
caused by : () takes 3 positional arguments but 4 were given
@lextm
Copy link

lextm commented May 16, 2023

Duplicate to pyasn1#28

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

2 participants