I am using Python 2.6 and facing the below exception:
Traceback (most recent call last):
File "ProceraExporter_new.py", line 695, in <module>
sendRecord(dictParseConfig,portList[0])
File "ProceraExporter_new.py", line 610, in sendRecord
dictRecord = proceraGen(dictParseConfig)
File "ProceraExporter_new.py", line 539, in proceraGen
exp = ProceraExporter(dictParseConfig)
File "ProceraExporter_new.py", line 216, in __init__
self.createHeaderToFuncMap()
File "ProceraExporter_new.py", line 234, in createHeaderToFuncMap
self.dictHeaderFuncMap['proceraApn'] = self.radiusCalledStationIdGenerator()
File "ProceraExporter_new.py", line 490, in radiusCalledStationIdGenerator
radiusCalledStationId = 'Sushfone-'+str(self.getRandomValue(start = 1, end = 5))
File "ProceraExporter_new.py", line 291, in getRandomValue
randomVal = adder + multiplier*random.randint(start, end)
File "/usr/lib64/python2.6/random.py", line 228, in randint
return self.randrange(a, b+1)
File "/usr/lib64/python2.6/random.py", line 200, in randrange
if width >= maxwidth:
SystemError: Objects/longobject.c:237: bad argument to internal function
From the trace, it can be seen that value of "start" is passed as 1 and "end" is passed as 5 which are integers, but still it is giving this exception.
Do you have any idea why this might occur?