Re: [pysnmp-users] bulkrole.py problem
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2002-11-14 11:12:10
|
A list for users of pure-Python SNMP framework <pysnmp-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/pysnmp-users>, <mailto:pys...@li...?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=pysnmp-users> Oh, that's a bug. Please, try the following patch and let me know if it helps. I'm going to commit it to the next (3.2.2) revision of pysnmp. Thanks, ilya 8X----------------------------------------- *** bulkrole.py.orig Tue Oct 1 12:16:07 2002 --- bulkrole.py Thu Nov 14 14:04:37 2002 *************** *** 183,189 **** try: transports[idx].send(question, dst) ! except role.Error, why: # Return exception self._responses[idx] = (self._responses[idx][0], why,\ self._responses[idx][2]) --- 183,189 ---- try: transports[idx].send(question, dst) ! except error.SnmpOverUdpError, why: # Return exception self._responses[idx] = (self._responses[idx][0], why,\ self._responses[idx][2]) *************** *** 213,219 **** try: (answer, src) = transports[idx].receive() ! except role.Error, why: # Return exception self._responses[idx] = (self._responses[idx][0],\ why,\ --- 213,219 ---- try: (answer, src) = transports[idx].receive() ! except error.SnmpOverUdpError, why: # Return exception self._responses[idx] = (self._responses[idx][0],\ why,\ On Thu, 14 Nov 2002, Mark Kilmartin wrote: > A list for users of pure-Python SNMP framework <pysnmp-users.lists.sourceforge.net> > List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/pysnmp-users>, > <mailto:pys...@li...?subject=unsubscribe> > List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=pysnmp-users> > Date: 14 Nov 2002 10:16:30 +0000 > > I have only been using pysnmp for a short while now but I have uncovered > an error in bulkrole.py > > When I try to run the snmpbulk.py example or my own program written to > use bulkrole I get the following error. > > Traceback (most recent call last): > File "./snmpbulk.py", line 157, in ? > client.dispatch() > File > "/usr/lib/python2.2/site-packages/pysnmp/mapping/udp/bulkrole.py", line > 186, in dispatch > except role.Error, why: > AttributeError: 'module' object has no attribute 'Error' > > > Unfortunately my python knowledge is currently not good enough to track > down this problem. > > MArk > > > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > pysnmp-users mailing list > pys...@li... > https://lists.sourceforge.net/lists/listinfo/pysnmp-users > |