-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cannot import name Connection #16
Comments
Hey, when making the change suggested above i get the following error: [1479896067] ERROR: [Shinken] The module retention-mongodb raised an exception 'Module' object has no attribute 'uri', I remove it! traceback=Traceback (most recent call last): |
Isn't this a duplicate of #8 ? |
I think so. Could you try with master version of this module if you got an issue ? |
master works for me, following these steps:
|
Hi guys,
I had an error while trying to make this module work
Cannot import name Connection
This was caused by this import
try:
from pymongo.connection import Connection
except ImportError:
Connection = None
It appears that since the version 3.0 of pymongo, the module Connection does no longer exist and can now be found in the MongoClient package. So I decided to change the part of the code that no longer work.
try:
from pymongo import MongoClient as Connection
except ImportError:
Connection = None
It would be great to update this :)
The text was updated successfully, but these errors were encountered: