Giter VIP home page Giter VIP logo

Comments (2)

 avatar commented on July 28, 2024

I fully agree. I had also trouble to get it running. When I first executed "python mongo_connector.py" I got the following error:
Traceback (most recent call last):
File "./mongo_connector.py", line 22, in
import oplog_manager
File "/home/.../mongo-connector/mongo_connector/oplog_manager.py", line 21, in
import bson
ImportError: No module named bson

Then I thought I had to run first setup.py (or perhaps ez_setup.py?) but by executing "python setup.py" I got the following error:
Traceback (most recent call last):
File "setup.py", line 32, in
from ez_setup import setup
ImportError: cannot import name setup

To make a long story short, I eventually found out that I had to run first "sudo python setup.py install" which will install some libs wich were missing before. Once installed, I was able to run the mongo_connector.

To save others users precious time it would be great to point out in the readme file to run "sudo python setup.py install" first. Thanks!

from mongo-connector.

llvtt avatar llvtt commented on July 28, 2024

For future reference, the easiest way to install mongo-connector is with pip:

pip install mongo-connector

You can also install the development version of mongo-connector manually like this:

cd your/installation/directory
git clone https://github.com/10gen-labs/mongo-connector.git mongo-connector
cd mongo-connector
python setup.py install

Note: you may have to run setup.py with sudo, depending on where you're installing mongo-connector and what permissions you have. I fully agree that the README could be clearer about the installation process, and this will be fixed soon.

from mongo-connector.

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.