[issue1636] Execfile unable to take arguments beyond 255!

Jack Atkinson report at bugs.python.org
Mon Dec 17 03:28:31 CET 2007


Jack Atkinson added the comment:

Error message from ipython console:
In [28]: mibBuilder2 = builder.MibBuilder().loadModules('ADTRAN-TC')
---------------------------------------------------------------------------
<class 'pysnmp.smi.error.SmiError'>       Traceback (most recent call last)

C:\Documents and Settings\Jack Atkinson\<ipython console> in <module>()

c:\python25\lib\site-packages\pysnmp\v4\smi\builder.py in
loadModules(self, *mod
Names)
     80                     del self.__modPathsSeen[modPath]
     81                     raise error.SmiError(
---> 82                         'MIB module \"%s\" load error: %s' %
(modPath, why)
     83                         )
     84

<class 'pysnmp.smi.error.SmiError'>: MIB module
"c:\python25\lib\site-packages\p
ysnmp\v4\smi\mibs\ADTRAN-TC.py" load error: more than 255 arguments
(ADTRAN-TC.p
y, line 33)


Here's the code that loads it:
try:
execfile(modPath, g)
except StandardError,
why: del self.__modPathsSeen[modPath]
raise error.SmiError( 'MIB module \"%s\" load error: %s' % (modPath, why) )

Added file: http://bugs.python.org/file8968/builder.py

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1636>
__________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: builder.py
Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071217/abb05cbb/attachment-0001.txt 


More information about the Python-bugs-list mailing list