Comments (3)
We are using the mongoctl
cookbook to install it, and I just faced the same error when bootstrapping a new server. The issue can be easily reproduced in a fresh virtualenv though:
$ virtualenv venv
$ source venv/bin/activate
(venv)$ pip
(venv)$ pip install mongoctl
Downloading/unpacking mongoctl
Downloading mongoctl-0.7.7.tar.gz (75kB): 75kB downloaded
Running setup.py (path: …/venv/build/mongoctl/setup.py) egg_info for package mongoctl
…
Downloading/unpacking pymongo>=2.7 (from mongoctl)
Downloading pymongo-3.0.1.tar.gz (381kB): 381kB downloaded
Running setup.py (path:/ …/venv/build/pymongo/setup.py) egg_info for package pymongo
…
Successfully installed mongoctl dargparse pymongo verlib boto
Cleaning up...
(venv)$ pip list
argparse (1.2.1)
boto (2.31.1)
dargparse (0.2.5)
mongoctl (0.7.7)
pip (1.5.4)
pymongo (3.0.1)
setuptools (2.2)
verlib (0.1)
wsgiref (0.1.2)
(venv)$ mongoctl
Traceback (most recent call last):
File "…/venv/bin/mongoctl", line 48, in <module>
from mongoctl import mongoctl
File "…/venv/local/lib/python2.7/site-packages/mongoctl/mongoctl.py", line 38, in <module>
import objects.server
File "…/venv/local/lib/python2.7/site-packages/mongoctl/objects/server.py", line 21, in <module>
from pymongo.connection import Connection
ImportError: No module named connection
It would appear pymongo 3.0.1
is installed (which is the latest available) regardless of what is specified in the current setup.py
.
Downgrading pymongo to 2.8 is enough to fix the issue: pip install pymongo==2.8
Note: it seems the pymongo.connection.Connection
indeed disappeared in pymongo 3.0, in favor of pymongo.MongoClient
(e.g. shinken-monitoring/mod-mongodb#7)
from mongoctl.
Hi,
The issue has been fixed and a newer version has been pushed to pypi 0.7.81 which has the proper pymongo dependency. Sorry for the trouble but pypi was acting weird for some reason. It was downloading version 0.7.7 while 0.7.8 was available so i had to re-upload 0.7.8 under a different version 0.7.81 so it would become the default.
Cheers!
-abdul
from mongoctl.
Thanks @abdulito , works like a charm on OS X 10.10 now, much appreciated!
from mongoctl.
Related Issues (20)
- pypi entry out of date HOT 1
- mongoctl prefer ssl does not use --ssl in executed command HOT 2
- Had to pull 0.7.9/0.7.8 out from pypi HOT 1
- pymongo==3.0.3: no module named Connection HOT 1
- publish to pypi HOT 1
- --edition argument in install-mongodb HOT 1
- Add security warning about open MongoDB instances HOT 1
- How to run a specific version of MongoDB? HOT 2
- New Database HOT 1
- mongoctl does not install with pip-3.2 HOT 4
- Use SSL Connection with configured clusters
- Mongo URI AuthSource Not Supported with Connect
- Mongo URI AuthSource Not Supported with dump or restore
- uninstall-mongodb fails when there is another partial version running
- reconsider logic for considering member as joined replica HOT 1
- cannot uninstall mongoctl
- How to make it work with IPs instead of DNS names?
- Error when removing a node that is no longer dns-mapped
- Can't install mongo 3.6.3 version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoctl.