[IronPython] TypeError: integer expected occurs when __getitem__ is called

Tianyong Tang tiyota at gmail.com
Fri Aug 10 08:57:35 PDT 2007


Hi,

I am a newbie with  IronPython,  and want to test pysnmp eggs of CPython in
IronPython.

It works in CPython, but when I try it in IronPython, error occurred with
the import of libraries at the beginning:

>>> from pysnmp.entity.rfc3413.oneliner import cmdgen
Traceback (most recent call last):
  File , line 0, in <string>##254
  File , line 0, in _stub_##2
  File
C:\Python25\lib\site-packages\pysnmp\v4\entity\rfc3413\oneliner\cmdgen.py,
line 2, in Initialize
  File , line 0, in _stub_##2
  File C:\Python25\lib\site-packages\pysnmp\v4\entity\engine.py, line 2, in
Initialize
  File , line 0, in _stub_##2
  File C:\Python25\lib\site-packages\pysnmp\v4\proto\rfc3412.py, line 5, in
Initialize
  File , line 0, in _stub_##2
  File C:\Python25\lib\site-packages\pysnmp\v4\proto\api\__init__.py, line
1, in Initialize
  File , line 0, in _stub_##2
  File C:\Python25\lib\site-packages\pysnmp\v4\proto\api\v1.py, line 3, in
Initialize
  File , line 0, in _stub_##2
  File C:\Python25\lib\site-packages\pysnmp\v4\proto\rfc1155.py, line 37, in
Initialize
  File C:\Python25\lib\site-packages\pysnmp\v4\proto\rfc1155.py, line 38, in
IpAddress
  File , line 0, in _stub_##37
  File C:\Python25\lib\site-packages\pyasn1\v1\type\tag.py, line 84, in
tagImplicitly
  File , line 0, in _stub_##248
  File C:\Python25\lib\site-packages\pyasn1\v1\type\tag.py, line 89, in
__getitem__
  File , line 0, in _stub_##253
TypeError: integer expected

can IronPython get around such errors?

any response would be appreciated.

Thanks in advanced.

Good weekend.

regards,

Tianyong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070810/7ae64686/attachment.htm 


More information about the Users mailing list