Re: [pysnmp-users] bulkrole.py problem
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2002-11-14 13:09:54
|
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> I'm going to release the 3.2.2 right away. Please, let me know if your further experimentation with it unveals any more glitches. Anyone's contribution to this project is always welcome! Thanks, ilya On 14 Nov 2002, Mark Kilmartin wrote: > With a quick test using snmpbulk.py in the examples seems to work. > > I will not be able to test my own code with it until tomorrow. > > But everything looks good. > > Hopefully in the future my python will be good enough to allow me to > make some contributions to this excellent project. > > MArk > > > On Thu, 2002-11-14 at 12:25, Ilya Etingof wrote: > > > > Mark, > > > > I've fixed a couple of bugs in the relevant code. Please, try the > > release 3.2.2 (attached) and let me know if it works alright to you so I > > would release it to public. > > > > Thanks, > > ilya > > > > On 14 Nov 2002, Mark Kilmartin wrote: > > > > > I now have a different 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 > > > 184, in dispatch > > > transports[idx].send(question, dst) > > > File "/usr/lib/python2.2/site-packages/pysnmp/mapping/udp/role.py", > > > line 79, in send > > > self.open() > > > File "/usr/lib/python2.2/site-packages/pysnmp/mapping/udp/role.py", > > > line 59, in open > > > if self.agent[0] is not None and self.agent[1] != 0: > > > TypeError: unsubscriptable object > > > > > > > > > MArk > > > > > > On Thu, 2002-11-14 at 11:13, Ilya Etingof 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: Thu, 14 Nov 2002 14:11:51 +0300 (MSK) > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > |