Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

uninitialized constant Mongo::MongoClient #112

Open
ptrikutam opened this issue Nov 27, 2015 · 3 comments
Open

uninitialized constant Mongo::MongoClient #112

ptrikutam opened this issue Nov 27, 2015 · 3 comments

Comments

@ptrikutam
Copy link

I recently updated to mongoid 5.0, which in turn relies on mongo (~> 2.1). Unfortunately, we're getting this error right now:

/app/vendor/bundle/ruby/2.1.0/gems/mosql-0.4.0/lib/mosql/cli.rb:115:in `connect_mongo': uninitialized constant Mongo::MongoClient (NameError)
    from /app/vendor/bundle/ruby/2.1.0/gems/mosql-0.4.0/lib/mosql/cli.rb:149:in `run'
    from /app/vendor/bundle/ruby/2.1.0/gems/mosql-0.4.0/lib/mosql/cli.rb:16:in `run'
    from /app/vendor/bundle/ruby/2.1.0/gems/mosql-0.4.0/bin/mosql:5:in `<top (required)>'

I presume there are a lot of other API related errors like this as well.

I realize this is because the officially supported mongo version for mosql is 1.x, but are there any ideas of how to get around this short of rolling back the mongo version?

Any idea on time frame to update to the latest mongo driver?

@ptrikutam
Copy link
Author

Oh, and let me just re-iterate -- thank you for all your great work with mosql! This is a fantastic project and very very useful. Thanks!

@dmitrypol
Copy link

+1

@abhishekalai
Copy link

Can the guys @stripe/mosql please add a list of dependencies to their README. It might help to solve a lot of errors.

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

No branches or pull requests

3 participants