Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Error: Module version mismatch. Expected 48, got 46. #24

Closed
ToX82 opened this issue Aug 16, 2016 · 11 comments
Closed

Error: Module version mismatch. Expected 48, got 46. #24

ToX82 opened this issue Aug 16, 2016 · 11 comments

Comments

@ToX82
Copy link

ToX82 commented Aug 16, 2016

I have installed Zenbot using the instructions here, but when I try to launch ./run I am having this error:

/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:83
    throw e
    ^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at bindings (/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/home/tox/Scrivania/zenbot/node_modules/microtime/index.js:1:96)
at Module._compile (module.js:541:32)

MongoDB is at version 3.2.8
Node.JS is 6.3.1

@ghostnegotiator
Copy link

Your currently using old modules,

Update them trough:

npm install
npm install zenbrain

Otherwise use:

sh update.sh

@ToX82
Copy link
Author

ToX82 commented Aug 16, 2016

Wow fast! Thanks :)

I did it, but nothing has changed:

tox@portatilone:~/Scrivania/zenbot$ npm install
npm WARN zenbot_trader@3.1.2 No repository field.
npm WARN zenbot_trader@3.1.2 No license field.

tox@portatilone:~/Scrivania/zenbot$ npm install zenbrain
zenbot_trader@3.1.2 /home/tox/Scrivania/zenbot
└─┬ zenbrain@1.0.0-alpha      (git+https://github.com/carlos8f/zenbrain.git#e3d5b6430da645f44a420007fb90d34753ee67cf)
  └── numbro@1.8.1      (git+https://github.com/carlos8f/numbro.git#e6e9a0d5f4c32939a7c19cf1546c7766b38cd31f)

npm WARN zenbot_trader@3.1.2 No repository field.
npm WARN zenbot_trader@3.1.2 No license field.
tox@portatilone:~/Scrivania/zenbot$ ./run.sh 
/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:83
    throw e
    ^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at bindings (/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/home/tox/Scrivania/zenbot/node_modules/microtime/index.js:1:96)
at Module._compile (module.js:541:32)

@ToX82
Copy link
Author

ToX82 commented Aug 16, 2016

I have tried with ./update.sh too, but the local repository is Already up-to-date

@ghostnegotiator
Copy link

ghostnegotiator commented Aug 16, 2016

Could you re create your config.json? (Since it updated a several times :) )

@carlos8f
Copy link
Contributor

Error: Module version mismatch. Expected 48, got 46.

Means you compiled microtime module on a different version of node than you're running now.

cd /home/tox/Scrivania/zenbot
rm -Rf node_modules
npm install

should fix it

@ToX82
Copy link
Author

ToX82 commented Aug 16, 2016

Reinstalled node modules, now the error is

tox@portatilone:~/Scrivania/zenbot$ ./run.sh 
/home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:210
      throw err
      ^

ReferenceError: cb is not defined
at /home/tox/Scrivania/zenbot/node_modules/zenbrain/core/launcher/launcher.js:17:18
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runMount.js:5:25
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runBoot.js:4:23
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runHook.js:5:23
at end (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:8:15)
at done (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:11:10)
at each (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:16:43)
at /home/tox/Scrivania/zenbot/node_modules/motley-mongo/db/connectMongo.js:7:23
at connectCallback (/home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:300:5)
at /home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:207:11

:(

@grigio
Copy link
Contributor

grigio commented Aug 16, 2016

@ToX82 now it's mongodb unavailable @ localhost:27017 see config.js

@ToX82
Copy link
Author

ToX82 commented Aug 16, 2016

@grigio you were right, I was actually missing something in my mongodb installation... thank you all!

@grigio
Copy link
Contributor

grigio commented Aug 17, 2016

Maybe it's worth to catch this exception in zenbrain/core/launcher/launcher.js:17:18 and print some more informative output

@carlos8f
Copy link
Contributor

should be throw err, fixed in zenbrain/zenbot master

@carlos8f
Copy link
Contributor

Zenbot 4 is out, so I'm cleaning up 3.x issues. Please use and test 4, thanks!

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

4 participants