stripe-archive / mosql

MongoDB → PostgreSQL streaming replication
MIT License
1.62k stars 224 forks source link

uninitialized constant Mongo::MongoClient #112

Open ptrikutam opened 9 years ago

ptrikutam commented 9 years ago

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 commented 9 years ago

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 commented 8 years ago

+1

abhishekalai commented 5 years ago

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