Do you know what type of object is being indexed and what the index type is (what's happening on line 89 in tag.py)? You could also run with the -X:ExceptionDetail command line option and then we'd know where on the .NET side of things this exception is coming from.
Although I doubt this will help you might want to try running against the 2.4 standard libraries. Our 2.5 support is still incomplete and there are things the 2.5 std lib depends upon which we don't have implemented. You could also see if the bug repros on v1.1 of IronPython as it could be a regression in the 2.0 tree. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tianyong Tang Sent: Friday, August 10, 2007 8:58 AM To: users@lists.ironpython.com Subject: [IronPython] TypeError: integer expected occurs when __getitem__ is called 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
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com