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

pysnmp.carrier.error.CarrierError: Unregistered transport with asyncio #170

Open
bharatjosh opened this issue Jul 23, 2018 · 5 comments
Open

Comments

@bharatjosh
Copy link

bharatjosh commented Jul 23, 2018

Hi,

We are using pysnmp for our project with asyncio to collect SNMP data from multiple devices in single process. When the number of devices we need to collect data from, are more than 20, we see following traceback:

2018-07-22 01:50:21,125 - 24760 - asyncio - ERROR - Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7f7b54c214e0>, ('10.0.2.66', 161), b'01\x02\x01\...:\x04\x04eth0')
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7f7b54c214e0>, ('10.0.2.66', 161), b'01\x02\x01\...:\x04\x04eth0')>
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
    self._callback(*self._args)
  File "virtualenv/lib/python3.4/site-packages/pysnmp/carrier/base.py", line 58, in _cbFun
    'Unregistered transport %s' % (incomingTransport,)
pysnmp.carrier.error.CarrierError: Unregistered transport <pysnmp.carrier.asyncio.dgram.udp.UdpAsyncioTransport object at 0x7f7b54c214e0> 

We are using pysnmp==4.4.4 and doing this in a virtual-environment.

Please let us know if you can help us with something to fix this issue.

Regards,
Bharat

@etingof
Copy link
Owner

etingof commented Jul 26, 2018

This is curious... I can imagine this happening if you reinitialize the main loop every now and then.

Could you please show me your script? If you could come up with a minimal reproducer, that would be absolutely awesome! ;)

@bieniu
Copy link

bieniu commented Aug 31, 2020

Any additional information on this issue? We have exactly the same error in integration for Brother printers in the Home Assistant. The integration uses this library.

@arunachalav
Copy link

Any updates on this?

@dolevha
Copy link

dolevha commented Oct 13, 2024

Hi, I experience a similar issue in my environment when walking through multiple switches at once with asyncio.
Did you get to solve this issue?

@lextm
Copy link

lextm commented Oct 13, 2024

@dolevha This isn't the repo for PySNMP package. Please read #429 to learn more.

Besides, you need to be using a supported version, https://github.com/lextudio/pysnmp/blob/main/SECURITY.md. As new maintainers, we have fixed many bugs in the past few releases, so this might have been resolved already.

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

6 participants