[IronPython] TypeError: integer expected occurs when __getitem__ is called
Dino Viehland
dinov at exchange.microsoft.com
Fri Aug 10 18:07:31 CEST 2007
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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tianyong Tang
Sent: Friday, August 10, 2007 8:58 AM
To: users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070810/0fd3aece/attachment.html>
More information about the Ironpython-users
mailing list