iPlantCollaborativeOpenSource / Robotframework-MongoDB-Library

A library for interacting with MongoDB from RobotFramework
Other
33 stars 50 forks source link

Cannot Connect to Mongo #7

Closed trogdor259 closed 9 years ago

trogdor259 commented 9 years ago

I have a very simple test created in robot framework to connect to my mongo server. When I run it I get the message: AttributeError: 'module' object has no attribute 'connection' I am using python 2.7.6 and pymongo 3.0.2. Is there a dependency I am missing or is this incompatible with the newest versions of python and pymongo?

jerry57 commented 9 years ago

Not that I am aware of. Have you tried an earlier version of pymongo (before 3.0)? The projects here have dropped support/usage of MongoDB, so I have not been working with it or keeping up.

trogdor259 commented 9 years ago

I changed to using pymongo 2.8 and it works. So the issue is definitely with the version of pymongo being used

jerry57 commented 9 years ago

Sounds like they changed something in the connection string. Can you continue to use 2.8 for now and I will take a look when I get a break. Hopefully sometime this week

trogdor259 commented 9 years ago

I will do so. Thanks!

EastAnt commented 9 years ago

This library is based on Pymongo 2.2. For version 3.0, something changed and it can work now. References:

jerry57 commented 9 years ago

MongoDB-Library now compatible with pymongo 3.0.3 and documentation has been updated.