Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not load MongoDBLibrary successfully #12

Open
lijing8428 opened this issue Aug 25, 2016 · 2 comments
Open

Can not load MongoDBLibrary successfully #12

lijing8428 opened this issue Aug 25, 2016 · 2 comments

Comments

@lijing8428
Copy link

Import this library in RIDE: MongoDBLibrary, it raises an error.
error in RIDE log:
Importing test library 'MongoDBLibrary' failed: ImportError: No module named objectid
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 143, in import
return import(name, fromlist=fromlist)
File "C:\Python27\lib\site-packages\MongoDBLibrary__init
_.py", line 2, in
from mongoquery import MongoQuery
File "C:\Python27\lib\site-packages\MongoDBLibrary\mongoquery.py", line 2, in
from bson.objectid import ObjectId

how to resolve it?

@jerry57
Copy link
Contributor

jerry57 commented Aug 25, 2016

Do you have mongo.py installed? MongoDBLibrary will not load if mongo.py is not installed.

@lijing8428
Copy link
Author

I uninstall pymongo 3.3.0 and reinstall pymongo 3.0.3 and resolve the problem.
The latest version of pymongo is 3.3.0, I guess MongoDBLibrary 0.3.2 is not compatible with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants