mosql icon indicating copy to clipboard operation
mosql copied to clipboard

uninitialized constant Mongo::MongoClient

Open ptrikutam opened this issue 9 years ago • 3 comments

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 avatar Nov 27 '15 20:11 ptrikutam

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!

ptrikutam avatar Nov 27 '15 23:11 ptrikutam

+1

dmitrypol avatar Jan 15 '16 23:01 dmitrypol

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

abhishekalai avatar Jul 31 '19 06:07 abhishekalai