Iron Python and PyMongo Error
Question: I'm getting this error when I try to connect to mongodb (using pymongo) with
Iron Python...

    
    
    Traceback (most recent call last):
      File "test.py", line 3, in <module>
      File "c:\Program Files (x86)\IronPython 2.7\lib\site-packages\pymongo\connecti
    on.py", line 179, in __init__
      File "c:\Program Files (x86)\IronPython 2.7\lib\site-packages\pymongo\mongo_cl
    ient.py", line 269, in __init__
    pymongo.errors.ConnectionFailure: Specified cast is not valid.
    

Code is pretty simple, I have replaced the db name.

    
    
    import pymongo
    
    c = pymongo.Connection('mongodb://testuser:test123@linus.mongohq.com:10021/sometestdb')
    

It works fine with regular python. Any ideas?


Answer: Ironpython isn't supported by pymongo - so I wouldn't advise trying to use it.
You can see on the pypi page a list of supported implementations:
<http://pypi.python.org/pypi/pymongo>

