anlek/mongify

Mongify check : uninitialized constant BSON::ByteBuffer

Closed this issue · 6 comments

Hi,

When I run : mongify ck -c database.config

I get this error :

.rvm/gems/ruby-1.9.3-p286/gems/mongo-1.3.1/lib/mongo/cursor.rb:419:in `construct_query_message': uninitialized constant BSON::ByteBuffer (NameError)

Database.config :

sql_connection do
adapter "mysql2"
host "localhost"
socket "/Applications/MAMP/tmp/mysql/mysql.sock"
username "root"
password "*************"
database "BD_JDR_ROR"
end

mongodb_connection do
host "localhost"
database "nedubad_test"
end

What i'm doing wrong ?

I don't think it's your code, I think it's your setup. Can you please provide me with the version of ruby, bundler and gem that you're running?

Hi !

So :
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.3.0]
Bundler version 1.3.5

Gems :

Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using bson (2.0.0.rc3)
Using bson_ext (1.5.1)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using highline (1.6.20)
Using hike (1.2.3)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using libv8 (3.16.14.3)
Using mongo (1.3.1)
Using mysql2 (0.3.14)
Using mongify (0.3.1)
Using optionable (0.1.1)
Using moped (2.0.0.beta3)
Using origin (1.1.0)
Using mongoid (4.0.0) from git://github.com/mongoid/mongoid.git (at master)
Using nifty-generators (0.4.6)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rails3-jquery-autocomplete (0.6.0)
Using ref (1.0.5)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using therubyracer (0.12.0)
Using uglifier (2.3.1)

Thanks for your help

Try updating mongify. It's currently at version 1.0.0 and see if that
helps.
On 2013-11-16 4:24 AM, "Badoche" notifications@github.com wrote:

Hi !

So :
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.3.0]
Bundler version 1.3.5

Gems :

Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using bson (2.0.0.rc3)
Using bson_ext (1.5.1)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using highline (1.6.20)
Using hike (1.2.3)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using libv8 (3.16.14.3)
Using mongo (1.3.1)
Using mysql2 (0.3.14)
Using mongify (0.3.1)
Using optionable (0.1.1)
Using moped (2.0.0.beta3)
Using origin (1.1.0)
Using mongoid (4.0.0) from git://github.com/mongoid/mongoid.git (at
master)
Using nifty-generators (0.4.6)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rails3-jquery-autocomplete (0.6.0)
Using ref (1.0.5)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using therubyracer (0.12.0)
Using uglifier (2.3.1)

Thanks for your help


Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-28625566
.

I'm going to assume you got this figured out, if you still have an issue, please feel free to re-open this ticket.

BSON 2.0.0 is not backwards compatible with the 1.x BSON series.

Thanks, I am specifying BSON 1.x in the gemspec