cmusphinx / node-pocketsphinx

Pocketsphinx bindings for Node.JS
Other
242 stars 47 forks source link

Error: Module version mismatch. Expected 49, got 48. #32

Closed causztic closed 8 years ago

causztic commented 8 years ago

Hello,

I've installed sphinxbase and pocketphinx from the github repository as per the README on my OSX El Capitan.

I managed to compile node-pocketsphinx properly with cmake-js, and tried the commands on the Readme to test that pocketsphinx is indeed working. However, i'm getting the Module version mismatch error whenever I try to call the module on npm start.

My node version is v6.2.2 and npm is 3.9.5.

I tried reinstalling the entire node_modules by deleting it and reinstalling, and even re-downloaded node and npm, but to no avail.

Any ideas?

nshmyrev commented 8 years ago

You need to provide exact and complete output of the problematic command.

causztic commented 8 years ago
> electron .

App threw an error during load
Error: Module version mismatch. Expected 49, got 48.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
    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 Object.<anonymous> (/Users/user/Work/eve/node_modules/pocketsphinx/index.js:1:99)
nshmyrev commented 8 years ago

This is a bug in electron-prebuilt https://github.com/electron-userland/electron-prebuilt/issues/172, you can compile electron from source or downgrade it to fix this problem.

causztic commented 8 years ago

ok I just tried clearing everything (on homebrew) and it seems that it is really a problem on Electron's end. An error from the future.. thanks for finding the temporary solution!