GithubHelp home page GithubHelp logo

Comments (3)

asiebert avatar asiebert commented on June 10, 2024

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.

abdulito avatar abdulito commented on June 10, 2024

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.

joegoggins avatar joegoggins commented on June 10, 2024

Thanks @abdulito , works like a charm on OS X 10.10 now, much appreciated!

from mongoctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.